Hot answers tagged

7

export into a CSV: two columns, separated by ; (assuming there is no ; in a file name) open Terminal change to folder containing the files run perl -pi -e 's/\r\n/\n/;' LISTOFNAMES.csv to fix CRLF issues run while IFS=\; read old new; do mv "$old" "$new"; done < LISTOFNAMES.csv PS: This will overwrite existing files if the new name already exists. ...


3

I've found this to be one of the most simple ways: In a spreadsheet column, concatenate: "cp oldfilename newfilename" to create a copy with the new name. Use "mv oldfilename newfilename" to replace the old files rather than copy. Copy this concatenated column to a text file and save as rename.sh in the folder with the files to be renamed. Open terminal, ...


1

A couple years back I wrote a blog post on performing bulk file operations. The first step was to copy the list of files from search results into a spreadsheet. Since you already have the spreadsheet, you are very close to having a script that can do the renaming for you. Let’s assume you have old names in column A and new names in column B. Write the ...


1

Apparently, Telegram Desktop generates these files during "failed" searches when using the @gif command. The ones that Telegram generates are easily identified by being named with a series of 18 digits (e.g 532576936841446647.download), usually similar to one another, and always at zero-bytes length. You can replicate the issue by trying some @gif searches ...



Only top voted, non community-wiki answers of a minimum length are eligible