[CentOS] bash script reading directory with while and do

Wed May 28 13:40:35 UTC 2014
Robert Nichols <rnicholsNOSPAM at comcast.net>

On 05/28/2014 07:10 AM, Elias Persson wrote:
> On 2014-05-25 12:08, Paolo De Michele wrote:> !/bin/bash
>   >          tar cfz `date +%F`_$NAME.tar.gz web$NR/
>
> 3. Your `tar` stanza is wrong (if it's not obvious to you why that is,
>      now is a good time to make a habit of using long options
>      (e.g. `--gzip`) whenever possible).

Actually it is correct, aside from possible whitespace issues with $NAME.
It is using an outdated syntax (short options all in a group _without_ a
leading "-"), but doing it correctly with the needed option argument
following the set of option letters.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.