Date: Tue, 5 Dec 2000 16:31:52 +0300 From: "Igor' Robul'" <igor@raduga.dyndns.org> To: Hans Johannsson <hj72@everyday.com> Cc: freebsd-questions@freebsd.org Subject: Re: need help with /bin/csh Message-ID: <20001205163152.A8048@linux.rainbow> In-Reply-To: <200012051236.NAA08920@lambda.swip.net>; from hj72@everyday.com on Tue, Dec 05, 2000 at 01:36:15PM %2B0100 References: <200012051236.NAA08920@lambda.swip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 05, 2000 at 01:36:15PM +0100, Hans Johannsson wrote: > Anoyne know where i can get more info on csh.?! man csh Or look at example: #!/bin/csh set path=(/sbin /bin /usr/sbin /usr/bin /usr/local/bin /usr/local/sbin) mount /backup/data foreach f ( `cat /etc/backup/dirlist` ) set bf=`basename $f``date +%Y%m%d`inc find $f ! -name $f -type f -newer /etc/backup/last_`basename $f` | \ tar czTf - /backup/data/$bf.tgz touch /etc/backup/last_`basename $f` end sync sync sync umount /backup/data -- Igor' Robul', Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001205163152.A8048>