i need a simple shell script for unix, however im completely useless at shell scripting and cant get past the #!/bin/sh bit 8(....
what i desperately need to do is move files from my current directory into subdirectories depending on the first letter of its name, (eg.Accounts/A54mJU would be put into a subdirectory called A).
Subdirectories should only be created if there's files to be put into them (ie. no empty subdirectories)
and last of all a file called catalogue.txt should be created in my current directory listing all of the files which have been relocated, grouped by letter....
if any answers or help can be given i would be forever grateful...
thanks... Janet
what i desperately need to do is move files from my current directory into subdirectories depending on the first letter of its name, (eg.Accounts/A54mJU would be put into a subdirectory called A).
Subdirectories should only be created if there's files to be put into them (ie. no empty subdirectories)
and last of all a file called catalogue.txt should be created in my current directory listing all of the files which have been relocated, grouped by letter....
if any answers or help can be given i would be forever grateful...
thanks... Janet