Filename manipulation with sed, awk and cut

1 · Benjamin Cane · Aug. 5, 2011, 6:27 a.m.
Working with files is one of the most common tasks for systems administrators; because of that there are numerous ways to work with files in the Linux/Unix environment. Here is 2 quick examples on how to rename files. Example: imadmac:testing madflojo$ ls -la total 32 drwxr-xr-x 6 madflojo wheel 204 Aug 4 20:11 . drwxrwxrwt 6 root wheel 204 Aug 4 20:10 .. -rw-r--r-- 1 madflojo wheel 8 Aug 4 20:11 1....