1,656 reputation
1413
bio website
location
age
visits member for 1 year, 7 months
seen 13 hours ago

Oct
5
revised How to exchange words in a filename using the shell?
gave a little bit of explanation on the regexes
Oct
5
revised How to exchange words in a filename using the shell?
added 417 characters in body
Oct
5
awarded  Custodian
Oct
5
reviewed Approve suggested edit on How to append multiple lines to a file with bash
Oct
5
revised How to exchange words in a filename using the shell?
added 165 characters in body
Oct
5
answered How to exchange words in a filename using the shell?
Oct
4
comment Quickest way to rename files, without retyping directory path
In some Linux distros (such as Ubuntu), rename is an entirely different, perl-based program. There, you would use rename 's/txt$/sh/' ~/folder/subfolder/file.txt.
Sep
30
revised Tool in unix to subtract text files?
added in example usage
Sep
30
suggested suggested edit on Tool in unix to subtract text files?
Sep
29
revised Extracting file name and string from multiple files
added 27 characters in body
Sep
29
answered Extracting file name and string from multiple files
Sep
26
answered Modify some files to add the file name
Sep
17
comment Is it correct to use certain special characters when naming filenames in Linux?
Windows has stricter restrictions on what can be in a file name, so if there's any chance that the files will need to be used there, that's something to pay attention to.
Sep
16
comment Sed — Replace first k instances of a word in the file
Do you need sed specifically, or are other tools acceptable? Do you need to work on command line, or is a text editor acceptable?
Sep
15
answered Delete empty directories without find
Sep
12
comment Grep and cut the selected field
Your snippet won't have exactly the same output I think; the one in the question will end up with two comma-seperated fields, while yours will have... a lot more than that.
Sep
12
comment Is there a better way than cp to copy millions of files while preserving hard links?
Is this able to handle hardlinks?
Sep
12
comment Is there a better way than cp to copy millions of files while preserving hard links?
Hrrm. Maybe the tar trick? I don't know if/how that handles hardlinks, though.
Sep
10
comment rename hundreds of file by removing last few characters
rename sometimes goes as prename (perl-rename), depending on the specific OS (there is another command called rename, which uses a more tr-like syntax and is generally inferior).
Sep
5
revised How to append multiple lines to a file with bash
added 10 characters in body