Re: basic c thing
On Fri, 24 Sep 1999, Phillip Neumann wrote:
> Im just beginning to mess my hands into c, so i need some tips...
> i want to make a program that will rename all dirs in the current dir position to "<dir-name>-renamed". rename files instead of dirs would help me a lot too...
Is this everything you want? Then why torture your brain with c? This is
what I would try:
#!/bin/sh
for i in *; do
if [ -d $i ]; then
mv $i $i.renamed
fi
done
-- Thomas
PGP public key available (KeyID 2EA7BBBD) | Echelon is watching you.
http://www.in.tum.de/~schoepf/pgpkey.txt |
Reply to: