So does that mean I will be left with 2 files, ie track feat.artist.mp3 and track feat artist.mp3? If so can I just add this to the bottom:
?
Quote:
Originally Posted by ryan
@barrydocks: Why do you want to remove dots from filenames? Since when do dots cause trouble on any os? I'm just curious..
I use an old version of flac2mp3 to convert my flac audio files to mp3, the version I use has been patched to also embed the cover art jpg into the mp3 it creates, the only problem is that it is a bit flakey with filenames that have dots and other unusual characters. The other problem is that I didn't realise this when ripping my CDs to flac and I don't fancy doing it again, hence my questions on how to remove them.
Last edited by barrydocks; 12-21-2011 at 06:16 AM..
Reason: typo
So does that mean I will be left with 2 files, ie track feat.artist.mp3 and track feat artist.mp3? If so can I just add this to the bottom:
?
[...]
Absolutely no
When the script finds a file named, let's say, feat.artist.mp3, it will remove all the dots except the one before the string mp3.
If there is already a file named featartist.mp3, the script won't do anything (you'll get only a warning, actually): the filename feat.artist.mp3 will remain unchanged.
Let me know if you want something different (for example: substitute all the dots with underscore).
If there is not file named featartist.mp3, feat.artist.mp3 will be renamed to featartist.mp3 (anyway, no need to execute rm).
Hi Guys,
My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$%
abc|xyz|acd¥£ó
adc|123| 12áí
Please help on this.
Thanks
Rakesh (1 Reply)
Hi,
I have a file having following content.
<sip:9376507346@97.208.31.7:51088
<sip:9907472291@97.208.31.7:51208
<sip:8103742422@97.208.31.7:51024
<sip:9579892841@97.208.31.7:51080
<sip:9370904222@97.208.31.7:51104
<sip:9327665215@97.208.31.7:51104
<sip:9098364262@97.208.31.7:51024... (2 Replies)
hello,
I'm trying to figure out which tool is best for recursively renaming and files or folders using the characters \/*?”<>| in their name. I've tried many examples that use Bash, Python and Perl, but I'm not much of a programmer I seem to have hit a roadblock.
Does anyone have any... (15 Replies)
I have a perl find program that will find all files of window application stored on unix disks.
Ofcourse these files contain all the weird characters windows allows, but on *nix pukes out all kinds of unwanted effects when processing these.
Is their a utility that will escape all these... (3 Replies)
Hi,
I am creating a script to do a find and replace single/multiple lines in a file with any number of lines.
I have written a logic in a script that reads a reference file say "findrep" and populates two variables $FIND and $REPLACE
print $FIND gives
Hi How r $u
Rahul()
Note:... (0 Replies)
Hi Gurus,
Do any kind souls encounter have the same script as mentioned here.
Find and compare filenames in different mount point and remove duplicates.
Thanks a million!!!
wanna13e (7 Replies)
I want to create a temp file which is named based on a search string. The search string may contain spaces or characters that aren't supposed to be used in filenames so I want to strip those out.
My thought was to use 'tr' with but the result is the opposite of what I want:
$ echo "test... (5 Replies)
Hi all,
Am creating files and doing copy,compare and deletion.
As i do not want to mention the filepath everywhere, i store the filepaths in variables.
FILENAME="/home/test/create/Myfile.txt"
WR_PATH="/home/test/wrie/writefile.txt"
RD_PATH="/home/test/myread/readfile.txt"
echo "This is my... (2 Replies)
Hi.
I have many files in a folder, and even more in the subfolders. I need a script that finds and removes certain characters (them being /n in this one) in the files in the folder and it's subfolders.
So, could someone write me a script that works in Linux, does this:
Searchs for "/n" in... (5 Replies)
Hello,
I have a requirement to search a directory, which contains any number of other directories for file names that contain special characters.
directory structure
DIR__
|__>DIR1
|__>DIR2__
|__>DIR2.1
|__>DIR2.2
|__>DIR3
..
... (8 Replies)