[ale] tar weirdness

John Wells jb at sourceillustrated.com
Fri Jan 24 10:57:04 EST 2003


One way to do it easily under bash or ksh is:

tar -cvf mytar.tar $(find . -print | grep -ivE '\.$|patternidontwant')

Course, remove the i if you want case sensitivity.

John



Geoffrey said:
>
>
> James P. Kinney III wrote:
>> Tar is not working the way I think it is suppose to. I want to tarball
>> a directory EXCEPT for files ending in .gdbm
>>
>> tar cvzf tarball.tar.gz --exclude dir/*.gdbm dir
>
> The only way I know how to do this is:
>
> find dir -name '*.gdbm' -print > list
>
> tar cvzf tarball.tar.gz --exclude-from list
>
> --exclude I believe is a single file name, quit useless to me. :(
>
>>
>> All it tars ARE the gdbm files. Does tar not support globing?
>
> --
> Until later: Geoffrey		esoteric at 3times25.net
>
> The latest, most widespread virus?  Microsoft end user agreement.
> Think about it...
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale



_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list