Introduction
What the hell is bash anyway? Before doing any kind of research, I actually had a very difficult coming up with a simple ex...
For further actions, you may consider blocking this person and/or reporting abuse
You can use
$USERinstead of invoking another program, i.e.$(whoami). Similarly for$PWD. You can also use printf directly to print the date, checkman strftime.The
printfcommand is really powerful and is more than an extension toecho. Note that the way you are using it may cause issues, as it concatenates the format and the variable(s) part:Or as an example:
You may also want to check out the short notation for the bash built-in test command
[[ ]].Recommendations:
can't wait for next time!
Please also give an detailed tour through piping
Nice article! Gives a good understanding on bash!