Basically, I have a huge amount of files (ripped audiobooks) that all have the same garbage in their filenames. I'm wondering how to go about writing a bash script to mass rename them. Example filenames as they stand now:
I'd like to have the script ask me what needs to be removed and then do it.
In this case, I want to remove the text: "The First CD - "
The output of the directory above would then be:
Hi.
What is the easiest way to rename a bunch of files? For example taking all files ending in ".php3" and rename them to end in ".php"
I could write a script to do this, but there is probably an easier way...
Thanks! (17 Replies)
Don't tell me DOS can do something UNIX can't do! I want to copy a number of files from one directory to another, and at the same time change the names. The name changes would be common, e.g., all files starting with the letter 'L' and ending in '30.NEW554', with the copied or new files also... (6 Replies)
I'm working on a project that basically unzips three zip files.
When these unzip they create about 70+ directories with subdirectories of year/month with about 3 to 9 pdf files in each directory.
Basically, I'm needing to figure out a way to zip these pdf files up.
for instance the script... (1 Reply)
Hello
I have a directory structure with year in format 4 digits, e.g 2009, below which is month format 1 or 2 digits, e.g 1 or 12, blow which is day format 1 or 2 digits, e.g 1 or 31.
I want to change the names of lots of directories to the be
Year - 4 digits , e.g 2009 - No change here... (4 Replies)
Hi.
I've got 75 mp3s that have the word 'Émission' in their filename.
They are all in this format:
Émission bla1 bla1.mp3
Émission bla2 bla2.mp3
Émission bla3 bla3.mp3
etc...
I would just like to mass replace 'Émission' by 'Emission'; basically replace 'É' with 'E'. The rest of the... (10 Replies)
Hi.
I don't have any experience with making scripts in bash. I need a simple script to rename all files in a folder to the format file1.avi, file2.avi, file3.avi, and so on.....
Please note that the original files have different filenames and different extensions. But they all need to be... (2 Replies)
Dear friends,
I have created a script to rename all files in a directory by appending the file name with username (who created the file), the date it was created. For example, "apple.doc" should be renamed to "johnFeb23apple.doc" where "john" is the owner and "Feb23" is file created date. It... (4 Replies)
I just can't figure it out , so please just give me a pice of advise how to:
The existing Linux program foo2bar takes as its only argument the name of a single foo file and converts it to an appropriately-named bar file. Provide a script that when executed will run foo2bar against all foo... (4 Replies)
I have a few hundred text files that are currently numbered files. I would like to rename each one with the text from the first line in the file. I would prefer this is perl script rather than a one liner as it wil be after many alterations to the file via an existing script. Any help would be... (1 Reply)
HI,
I have a file serverlist in that all host names are placed.
i have written a small script
#./testping
#! /bin/bash
for i in `cat serverlist`
do
ping $i >> output.txt
done
so now it creates a file output.txt till here fine..
now each time i run this script the output file... (4 Replies)
Discussion started by: madhudeva
4 Replies
LEARN ABOUT DEBIAN
qmp3report
qmp3report(1) quelcom man pages qmp3report(1)NAME
qmp3report - report mp3 files and directories
SYNOPSIS
qmp3report [option]... file...
DESCRIPTION
qmp3report reads mp3 files or directories containing mp3 files and gives information about them. qmp3report can output the reports with
plain text or in html format. using the latter format, you can navigate your mp3 directories with a web browser.
OPTIONS -a, --all
report all files, not just files with suffix mp3.
-A, --show-all
implies --show-dirs, --show-files and --summary. show report for files and directories and a summary report.
-d, --dirs
show a report for every directory containing reported files/directories. note that if option --all is not set, only will be reported
those directories containing mp3 files.
-f, --files
show a report for every reportable file (see --all).
-h, --help
show a brief help and exit.
-H, --html
output in html format (default is plain text).
-r, --recursive
scan directories.
-s, --summary
show a summary report.
-S, --split
split report across visited directories. qmp3report leaves in each visited directory a file with the report for that directory,
independently of the output format. the name of the report file is the name of the directory with extension .txt or .html depending
on the selected output format.
-v, --verbose
show more detailed info.
-V, --version
show version and exit.
BUGS
variable bit rate (vbr) streams are detected by reading the initial (5) frames in the stream. if their bit rate field differs, the entire
stream is read to compute the duration time with accuracy (see manual info for qmp3info).
if vbr is not detected, qmp3report reads only the first frame in the stream and calculates the duration supposing that (1) the entire
stream is composed by valid frames and (2) all the frames have the same bit rate. this is a fast way to compute the duration of the stream,
but it is not exact: there's an error of 0.3% aprox.
the htmlize function, which converts file names in a suitable form for html format (ie. replacing spaces with %20), is not bulletproof.
tests have been done only with mpeg version 1 layer iii streams, though it may (or not) work with other versions or layers.
AUTHOR
dmanye@etse.urv.es
http://www.etse.urv.es/~dmanye/quelcom/quelcom.html
SEE ALSO qmp3info(1), qmp3join(1), qmp3cut(1), qmp3check(1)qwavinfo(1), qwavjoin(1), qwavcut(1), qwavsilence(1), qwavfade(1), qwavheaderdump(1)quelcom 0.4.0 february 2001 qmp3report(1)