Below is a little snippet to rename files in a linux directory. This code will loop through all the text files in a directory and remove the first 10 characters
Removing characters from a file name in linux
Below is a little snippet to rename files in a linux directory. This code will loop through all the text files in a directory and remove the first 10 characters
|
1 |
$ rm \.* |
I hate Centos. But I have to use it. One of the main drawbacks for a soundgirl like me is that I cant listen to m4a formats using Rhythmbox. Well after 4 years of using Centos I have finally got off my backside to find a player that will. So if you are using Centos
Another quickie so I never ever ever have to Google this again. This is command to count the number of files in a directory.
|
1 |
ls -1 | wc -l |
Where ls = list files -1 = (number 1) only one entry per line or -1a to include hidden files | = pipe into wc = wordcount -l = (letter