Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jul 2000 00:42:32 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        cjclark@alum.mit.edu
Cc:        John Baldwin <jhb@pike.osd.bsdi.com>, FreeBSD@pike.osd.bsdi.com, questions <freebsd-questions@FreeBSD.ORG>, "David J. Kanter" <djkanter@northwestern.edu>
Subject:   Re: Is the C-shell (csh) a bad shell?
Message-ID:  <20000719004232.R13979@fw.wintelcom.net>
In-Reply-To: <20000718230732.C677@pool1162.cvx20-bradley.dialup.e>; from cristjc@earthlink.net on Tue, Jul 18, 2000 at 11:07:33PM -0700
References:  <20000718160249.I13979@fw.wintelcom.net> <200007182310.QAA55420@pike.osd.bsdi.com> <20000718230732.C677@pool1162.cvx20-bradley.dialup.e>

next in thread | previous in thread | raw e-mail | index | archive | help
* Crist J. Clark <cristjc@earthlink.net> [000718 23:09] wrote:
> 
> But in the end, we agree. I still find tcsh is great for little
> command line jobs like,
> 
>   % foreach file ( pattern* )
>   > mv $file $file:r_old.$file:e
>   > endif

*cough*wussy*cough*

  for i in * ; do
    mv $i ${i%.*}_old.${i##*.}
  done

:)

-Alfred


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?20000719004232.R13979>