11-21-2009
Show some sample input, and expected output, as there is some confusions in your explanation.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: Aixia
1 Replies
2. Shell Programming and Scripting
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:
The First CD - 1x01 - Title 1.mp3
The First CD - 1x02 - Title 2.mp3... (4 Replies)
Discussion started by: audiophile
4 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: dranzer
2 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: djsnifer
4 Replies
5. UNIX for Dummies Questions & Answers
I am trying to create a script that will search for a directory named bob, and then rename that directory to peter. I do not want the directory path to change.
so /folders/bob
would become /folders/peter
It seems to be renaming the bob folder to peter correctly, but the peter folder ends... (2 Replies)
Discussion started by: gumby456m
2 Replies
6. Shell Programming and Scripting
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
7. UNIX for Dummies Questions & Answers
Hi,
I want to rename several files like this:
example:
A0805120817.BHN
A0805120818.BHN
.....
to:
20120817.0805.N
20120818.0805.N
......
How can i do this via terminal or in shell bash script ?
thanks, (6 Replies)
Discussion started by: pintolcv
6 Replies
8. Shell Programming and Scripting
I am trying to merge or combine all $1 values in validation.txt from multiple directories into one new file and output it here tab-delimited:/home/cmccabe/Desktop/20x/total/total.txt. Each $2 value and the header would then be a new field in total.txt. I am not sure how to go about this as cat is... (2 Replies)
Discussion started by: cmccabe
2 Replies
9. Shell Programming and Scripting
Hi,
Friends, i have a requirement where i need to rename my files residing in multiple sub directories and move them to one different directory along with some kind of directory indicator.
For eg:
test--is my parent directory and it has many files such as
a1.txt
a2.txt
a3.txt
... (5 Replies)
Discussion started by: gnnsprapa
5 Replies
SoXI(1) Sound eXchange SoXI(1)
NAME
SoXI - Sound eXchange Information, display sound file metadata
SYNOPSIS
soxi [-V[level]] [-T] [-t|-r|-c|-s|-d|-D|-b|-B|-e|-a] infile1 ...
DESCRIPTION
Displays information from the header of a given audio file or files. Supported audio file types are listed and described in soxformat(7).
Note however, that soxi is intended for use only with audio files with a self-describing header.
By default, as much information as is available is shown. An option may be given to select just a single piece of information (perhaps for
use in a script or batch-file).
OPTIONS
-V Set verbosity. See sox(1) for details.
-T Used with multiple files; changes the behaviour of -s, -d and -D to display the total across all given files. Note that when used
with -s with files with different sampling rates, this is of questionable value.
-t Show detected file-type.
-r Show sample-rate.
-c Show number of channels.
-s Show number of samples (0 if unavailable).
-d Show duration in hours, minutes and seconds (0 if unavailable). Equivalent to number of samples divided by the sample-rate.
-D Show duration in seconds (0 if unavailable).
-b Show number of bits per sample.
-B Show the bitrate averaged over the whole file (0 if unavailable).
-e Show the name of the audio encoding.
-a Show file comments (annotations) if available.
BUGS
Please report any bugs found in this version of SoX to the mailing list (sox-users@lists.sourceforge.net).
SEE ALSO
sox(1), soxformat(7), libsox(3)
The SoX web site at http://sox.sourceforge.net
LICENSE
Copyright 2008-9 by Chris Bagwell and SoX Contributors.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
AUTHORS
Chris Bagwell (cbagwell@users.sourceforge.net). Other authors and contributors are listed in the ChangeLog file that is distributed with
the source code.
soxi February 19, 2011 SoXI(1)