Re: tar et --exclude

トップ ページ

このメッセージに返信
著者: guilde.nt
日付:  
To: guilde
CC: guilde
題目: Re: tar et --exclude
> Bé non, ça ne marche pas sous bash. En fait, j'ai trouvé :
>
> $ rm ./'--exclude=nomad*'


$ info rm

       One common question is how to remove files whose names begin with a
    ‘-’.  GNU ‘rm’, like every program that uses the ‘getopt’ function to
    parse its arguments, lets you use the ‘--’ option to indicate that all
    following arguments are non-options.  To remove a file called ‘-f’ in
    the current directory, you could type either:


         rm -- -f


    or:


         rm ./-f


       The Unix ‘rm’ program’s use of a single ‘-’ for this purpose predates
    the development of the ‘getopt’ standard syntax.


-Nicolas T.