Command to segregate files by first letter |
Command to segregate files by first letter |
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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 05:42 AM |