≡ Menu

bash shell script

How can I find out the path of the directory in which my bash shell script is located and store that path in _base variable?
[click to continue…]

How do I can set IFS (internal field separator) while using read command in bash loops?
[click to continue…]

How do I reverse lines of a file or files under Linux or Unix like operating systems?
[click to continue…]

How do I pause for 5 seconds or 2 minutes in my bash shell script on a Linux or Unix-like systems?
[click to continue…]

How do I execute a script under UNIX or Linux like operating system using command prompt?
[click to continue…]

I want find out if a command exists on UNIX from a bash shell script. If command does not exists in $PATH, then I would like to display an error message on screen. How do I find out if a command exists on Posix system or not?
[click to continue…]

Bash Script: Read One Character At A Time

I need to count one character at a time from input.txt. How do I read one character at a time under Linux / UNIX bash shell script?
[click to continue…]