basename $f .txt
... to see output like:
/home/myplace/a.data.directory
... like .tar.gz which will be stripped off of the output. Note that basename and dirname don't verify that... loop -- where we read values from each line of input (from /etc/passwd into seven variables per line. ... way to explicitly generate message or redirect output to stderr. The best method I've come up with is t
1 -eq 2 ] && [ -n "`echo true 1>&2`" ] # (no output)
# ^^^^^^^ False condition. So far, everything as... true
# ^^^^^^^ False condition. So, why "true" output?
# Is it because both condition clauses within b... 1 -eq 2 && -n "`echo true 1>&2`" ]] # (no output)
# No, that's not it.
# Apparently && and || "sh