For questions about scripts written for the Bash command shell.
I have the following .txt file: Marco Paolo Antonio I want to read it line-by-line, and for each line I …
bashI want to get the filename (without extension) and the extension separately. The best solution I found so far is: …
bash string filenamesSay, I have a script that gets called with this line: ./myscript -vfd ./foo/bar/someFile -o /fizz/someOtherFile or …
bash command-line scripting arguments getoptsI have lines like these, and I want to know how many lines I actually have... 09:16:39 AM all 2.00 0.00 4.00 0.00 0.00 0.00 0.00 0.00 94.00 09:16:40 AM all 5.00 0.00 0.00 4.00 0.00 0.00 0.00 0.00 91.00 09:16:41 …
linux bash command-line scriptingHow do I know if a variable is set in Bash? For example, how do I check if the user …
bash shell variablesI need to check the existence of an input argument. I have the following script if [ "$1" -gt "-1" ] then echo …
bash shellI want to write a script that loops through 15 strings (array possibly?) Is that possible? Something like: for databaseName in …
arrays bash shell