0
votes
0answers
19 views

Kali Linux: Renaming files in bin

I'm just curious. I want to rename files in /bin such as - ls --> als //after I change it, the ls command no longer works and I have to use als instead - adduser --> aadduser - chmod --> achmod so I ...
1
vote
1answer
220 views

Copy files and rename them by creation date

i have a few directories (1 level) that were added to my server in specific times. the problem is, they are named as a random hash. would it be possible to copy them somewhere and rename by the ...
1
vote
4answers
599 views

Batch renaming of files using regular expression in Unix

I have several thousand files of the form: [8-digit number]_[number I want]_S60491_I129111.dcm. I wish to remove everything except the number I want, and use that as its name. In Ruby, I can get to ...
0
votes
2answers
424 views

Recursively rename all files in directory by using relative path separated by underscores

I have a directory structure like below where the structure is known, and the file names repeat themselves. I want to rename the files so they are unique, so that a/0/widgets/AL/part-1.gz becomes ...
3
votes
4answers
5k views

How to append a string to a file name in Bash Shell?

So I am supposed to find all the files in the given directory with surffix of .C or cc, and change their name to .C.blah or .cc.blah Is there a command to do that? Or should I implement this with ...
1
vote
1answer
147 views

Unix utility to rename file(s) in an editor or inline

I am looking for a unix command-line program for renaming file (or files) visually, in an editor or inline (in the same manner as you rename a file on your desktop). Example. I often need to rename a ...
4
votes
4answers
825 views

Renaming files in batch with Unix RENAME

I have files whose names look like this: Sim1-2_40.36.chr20_sb.foo.indel.novoalign.sam Sim1-2_40.36.chr20_sb.foo.indel.bwa.sam What I want to do is to replace all indel with snp in the names ...
10
votes
2answers
2k views

Unix: Files starting with a dash, -

Ok, I have a bunch of files starting with a dash, -. Which is not so good... and I want to rename them. In my particular case I would just like to put a character in front of them. I found the ...
8
votes
8answers
2k views

Mass renaming, *nix version

I was looking for a way to rename a huge number of similarly-named files, much like this one (a Windows-related question) except that I'm using *nix (Ubuntu and FreeBSD, separately). Just to sum up, ...