IPB
Your Ad Here


Welcome Guest ( Log In | Register )

Command to segregate files by first letter
shweta banerjee
post Nov 2 2009, 08:47 PM
Post #1


Advanced Member
***

Group: Members
Posts: 99
Joined: 22-May 08
Member No.: 265



Basically I have a folder with thousands of files in it and I want to split those files into folders. I could go through and do this ~26 times,

code:

mkdir _a
mv a* _a/
mv _a/ a/

Even if I recall the last commands I used for each letter its still a hassle though.

It would be nice to have a BASH script I could call something like this instead,

code:

segregate /path/to/directory

Topic Replies: 2
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 05:42 AM
Your Ad Here