Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bash-functions]

The tag has no usage guidance.

0
votes
1answer
37 views

Change value from file inside a while

I have a file like a database where I save name,surname,date of birth, gift, and I want to know if this person have got a gift from us or not. Those dates are splited by tabs in the file, one person ...
3
votes
0answers
54 views

Git - prune every whitespace-separated word originally introduced by specific author in project's history

We have a project under git revision control with only a single branch. We need to remove every new whitespace-separated word that was introduced for the first ever time in a given file by a specific ...
1
vote
0answers
71 views

Would a 'function_not_found_handle ()' loadable bash builtin be possible?

I wrote a function to handle unknown commands in bash via command_not_found_handle (). My intention is to source scripts on demand and access its functions inside the handler. But unfortunately the ...
0
votes
0answers
24 views

Making a simple script for counting which members of a set have appeared, and outputting probability of appearance of the remaining members

I am creating a simple bash script, but am relatively new to it. Hear me out and the easy (I hope) question will follow. i need to make a script that will take input from the keyboard to know which ...