Assistance with archival script
Matt Snell
mattds at gmail.com
Thu Nov 20 07:33:14 EST 2008
Thanks everyone, much appreciated.
On Wed, Nov 19, 2008 at 2:52 PM, Neil Joseph Schelly <neil at jenandneil.com>wrote:
> On Wednesday 19 November 2008 14:21, Matt Snell wrote:
> > find . -mindepth 1 -maxdepth 1 -type d -exec echo /usr/bin/7z a -t7z
> -mx=0
> {}.7z {} \;
>
> > What I want to do is prevent find from outputting "." as a directory as
>
> I added a mindepth argument to your find above. That will keep it from
> outputting . in the list and restrict only to the directories within the
> current directory.
> -N
>
--
MDS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20081120/6c4bffa2/attachment.html
More information about the gnhlug-discuss
mailing list