How do I write the output into the file in Linux bash shell? Can you explain I/O redirection for both bash and POSIX shell to write data to the file under Unix or Linux?
[continue reading…]
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?
[continue reading…]
[continue reading…]
How do I can set IFS (internal field separator) while using read command in bash loops?
[continue reading…]
[continue reading…]
How do I reverse lines of a file or files under Linux or Unix like operating systems?
[continue reading…]
How do I pause for 5 seconds or 2 minutes in my bash shell script on a Linux or Unix-like systems?
[continue reading…]
[continue reading…]
How do I execute a script under UNIX or Linux like operating system using command prompt?
[continue reading…]
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?
[continue reading…]