Re: help in linux shell script in copying files
From: Kirk Strauser (kirk@strauser.com)
Date: 01/30/03
- Next message: al: "vsftp"
- Previous message: Michael Heiming: "Re: help in linux shell script in copying files"
- In reply to: Gerhard W. Gruber: "Re: help in linux shell script in copying files"
- Next in thread: Gerhard W. Gruber: "Re: help in linux shell script in copying files"
- Reply: Gerhard W. Gruber: "Re: help in linux shell script in copying files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Kirk Strauser <kirk@strauser.com> Date: Wed, 29 Jan 2003 23:30:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 2003-01-29T22:51:43Z, Gerhard W. Gruber <sparhawk@gmx.at> writes:
> cd /temp; ls | while read f; do FIRST=`echo "$f" | cut -c1 | tr "[a-z]"
> "[A-Z]"`: mv "$f" "/data/$FIRST/$f"; done
Be careful! He'll lose homework points if any filenames start with [^a-zA-Z].
- --
Kirk Strauser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+OF/f5sRg+Y0CpvERAtbGAJ92p+ZADMCp+WePks3VmfbI4L4ZMQCgiiB/
7IF4Rfs2LhNjgnWSK5pFrnM=
=j6Nl
-----END PGP SIGNATURE-----
- Next message: al: "vsftp"
- Previous message: Michael Heiming: "Re: help in linux shell script in copying files"
- In reply to: Gerhard W. Gruber: "Re: help in linux shell script in copying files"
- Next in thread: Gerhard W. Gruber: "Re: help in linux shell script in copying files"
- Reply: Gerhard W. Gruber: "Re: help in linux shell script in copying files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]