Definitely bookmark and read
http://rute.2038bug.com/index.html.gz.
When creating a bash script, set this as the first line
Code:
#!/bin/bash
set -xv
The 1st line tells the system which interpreter (parser) to use.
Note that you should check the '/bin/bash' part by typing
at the cmd line (hereinafter known as cli).
The 2nd line is for debug purposes only; basically it shows you what you typed and how the parser translated it and what the resultant cmd & results looked like.
Worth its weight in gold
Normally a comment line starts with '#', but the 1st line above (sometimes known as the 'shebang' line) is an exception.
If posting code/data to LQ, please use code tags as explained here
https://www.linuxquestions.org/quest...do=bbcode#code.
Welcome to LQ
