Shell scripting tips and tricks...
I thought this might be a cool idea for a newbie scripting thread. Since I'm just learning scripting it will be useful for me, and hopefully useful to others in the same boat.
Something I just came across in the Advance Bash Scripting Guide
most everyone who's done any work in the shell knows ~ is the home directory of the current user. What I just found out (and this may be embarrisingly simple) is that:
~+ = current working directory
~- = previous working directory
The ABS also mentions ~= but I had trouble understanding exactly what that one does.
|