Re: bash script reading directory with while and do

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 2014-05-28 15:40, Robert Nichols wrote:
> 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.
>

I stand corrected. Apparently having the "f" in the middle is not a
problem with the old syntax.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux