[nflug] file name extensions

Joe josephj at main.nc.us
Thu Nov 16 14:28:54 EST 2006


eric wrote:
> anyone know how I can add an extention name like .sxw to 1000's of fun files
>
> I hear growns :)
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>
>   
Lost your last message.  Try man ls.  There's a -r or -R that 
recursively lists directories.  You just might want to add an if 
statement so you leave directory names alone.
I'm a little rusty and not on Linux right now, but it's something like
if [ ! -d <file> ]
then
  mv ...
fi

or you can test for a normal file and leave the ! (not) out, but I don't 
remember which flag it is.

Joe
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list