Questions tagged [rename]
119 questions
1
vote
1 answer
Find and rename files removing suffix
I'm using the following command to move all files (non-recursively) ended in _128.jpg into the 128x160 subdir. This works great.
find . -iname '*_128.jpg' | xargs -I '{}' mv {} 128x160
But I also need to remove the _128 suffix from each file. Also,…

andreszs
- 709
- 1
- 6
- 16
1
vote
2 answers
Rename command mistake, files do not show anymore in windows network drives
I made a mistake with rename command
find . -type f -exec rename 's/[^A-Za-z0-9._]//g' {} +
After that the files are not under their folders as they used to be and every file has . in front of them. Now my customers can not see the files. Once I…

cr0c
- 958
- 4
- 16
- 35
1
vote
0 answers
Cannot rename new folders in a server folder
Windows Server 2008 R2 SP1 - Windows 7 SP1 - Folder located on server, normally accessed via drive letter
There is one folder on the network where all users have modify rights. Suddenly people are not able to rename folders anymore. They can create…

Erwin Blonk
- 151
- 2
- 4
- 15
1
vote
6 answers
How can a rename a share on Windows Server 2003?
We would like to rename a share - not the folder, just the name of the Share itself - on a Windows 2003 Server. If I right-click on the folder name and go to the properties dialog, I can see the share name, but it's there as a dropdown list, not an…

AR.
- 165
- 1
- 2
- 6
1
vote
1 answer
Incomplete netdom computername /add: on 2008 DC
Have been following a technet article on how to rename Server 2008 DCs following a change of our disaster recovery site. All went well on the first DC I tried and the new name is showing up. I ran the following command on the final DC:
netdom…
user35213
1
vote
1 answer
Batch rename files using PowerShell or other
I have a folder of images taken on two different mobile phones. The two phones use slightly different file name formats. I want to change one of them to match the other so I have a neat photo album.
How can I change a file name from…

user166463
- 11
- 2
1
vote
2 answers
php scripts run only after renaming
That's really strange :So after i upload a folder with php files on another service,and try to execute them from a browser,i get 500 error.If i open a file in a text editor,save it with different name like file1.php,then erase the original,and…

a44
- 23
- 3
1
vote
0 answers
renaming hard drives (sdc to sdb) on the fly
ata2: link is slow to respond, please be patient (ready=0)
kernel: [2761026.198796] ata2: soft resetting link
kernel: [2761031.226669] ata2.00: disabled
kernel: [2761031.226720] ata2: EH complete
kernel: [2761031.226753] sd 1:0:0:0: [sdb] Result:…

w00t
- 1,164
- 3
- 19
- 35
1
vote
3 answers
Renaming a Domain Controller
how can i rename a domain controller in windows server 2003?

Ssegawa Victor
- 133
- 1
- 5
1
vote
3 answers
Recursively rename files using find and sed
I want to go through a bunch of directories and rename all files that end in _test.rb to end in _spec.rb instead. It's something I've never quite figured out how to do with bash so this time I thought I'd put some effort in to get it nailed. I've so…

opsb
- 163
- 2
- 6
1
vote
1 answer
Server 2003 won't let me rename the computer
I've got a windows server 2003 (standard edition) partition running as a non-domain computer.
I attempt to rename the computer and update the description using the My Computer -> Properties window, but after restarting the machine, a weird looking…

womp
- 133
- 7
1
vote
0 answers
Local references to old server name remain after Windows 2003 server rename
I have a standalone Win 2003 server with Windows Sharepoint Services (WSS3) running on it. I had to rename the server and I had bunch of problems resulting from this. Note that the server is not in AD environment.
I fixed the problems with…

imagodei
- 499
- 1
- 3
- 13
1
vote
2 answers
Batch renaming 32000 files - splitting into multiple subdirectories
I've got a web server which has files uploaded to it. There is a script which assigns them numeric IDs and stores them in a corresponding subdirectory.
I've now got 32000 of these uploads and that's too many for the server to handle in one…

Gareth
- 1,416
- 2
- 11
- 12
1
vote
3 answers
Rename/Move file only if destination does not exist
I would like to know if there is any way a file can be moved only if the destination does not exist - in other words, move only if it does not lead to overwriting.
mv --update
seemed first to be the solution, however, if the timestamp of the source…
mikeY
1
vote
6 answers
Linux renaming files to add _00 after filename before extension
What am I missing here, this seems so simple yet I cant get it to work.
I have a directory with files like AGPNDRAH01.jpg
I want a directory with files like AGPNDRAH01_00.jpg
rename 's/(\w+).jpg\$1\_00.jpg$//' *
Doesnt, work. Centos linux. Makes…

Mech
- 660
- 2
- 11
- 22