11-05-2009
File extensions in a dir
Hi All,
Is there a way to list all file extensions in a directory and its recursive dirs?
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello people, I was wondering if anyone could help me?
I want to produce a shell script that changes the filename extension on all matching file.
E.G. change all files called ‘something.rtf' to ‘something.doc' by giving the command:
Changex rtf doc
*where ‘Changex' is the name of... (2 Replies)
Discussion started by: thurrock
2 Replies
2. Shell Programming and Scripting
hi
i have a script
compareFiles()
{
find /tmp/Satya -type f | \
while read filename1
do
echo "----------------------------------------$filename1"
find /tmp/Satya -type f | \
while read filename2
do
if diff $filename1 $filename2
then
echo "Both files... (3 Replies)
Discussion started by: Satyak
3 Replies
3. Shell Programming and Scripting
Hi, I am fairly new to writing scripts.
I am trying to write a script that moves either One or All of the files from one directory to another.
I know how to make the actual command to do it, but i don't quite know how to add operators to it, ie -i or -a.
I want -i to move one file from... (4 Replies)
Discussion started by: SirJoeh
4 Replies
4. UNIX for Dummies Questions & Answers
Hey all,
i want to copy only the file names from an ftp server (directory and all sub directory) to a text file in another server (non ftp), i.e. i want to recursively move through directories and copy only the names to a text file.
any help is appreciated...thank you in advance (1 Reply)
Discussion started by: deking
1 Replies
5. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
6. Shell Programming and Scripting
I am trying to store file with certain file extensions to list but having some problems.
Here is a part of the code
set fryLst = ""
set fxtLst = ""
foreach f ($AfullNameLst)
set fname = $f:r
set fext = $f:e
if ("$fext" == ".ry") set fryLst = "$fryLst $f"
if ("$fext" == ".xt")... (2 Replies)
Discussion started by: kristinu
2 Replies
7. Shell Programming and Scripting
I'm in csh and have a list of file names, example
set Lst = "file1.ry file2.ry file3.ry file4.ry"
I want to check if all the extensions are ry. Is they are, I want to do something. (1 Reply)
Discussion started by: kristinu
1 Replies
8. UNIX for Dummies Questions & Answers
Hello everyone, I may sound stupid for asking this but I have files that need to be loaded onto every system at work. When loaded the files are for example....
5peasw.sim
the end result needs to be
5PEASW.sim
this is for over 50 files in the directory they go to.
I am trying to... (5 Replies)
Discussion started by: E404UserNotFoun
5 Replies
9. Shell Programming and Scripting
Hi Guys ,
I want create files Dire and Sub Dire. as same time using variable.
EX:
x1="/hk/Pt/put/NC/R1.txt"
x2="/hk/pt/Put/Ot/NC/RN.txt"
And i want delete all after done with my script.
Thanks (2 Replies)
Discussion started by: pareshkp
2 Replies
10. Shell Programming and Scripting
Hello Unix board community,
I have to program a shell script, but I am a complete noob so I hope I get some help here. The assignment is as follows:
The program removes all comments regardless of formatting or language from files with specific file name extensions (php, css, js, ...).... (3 Replies)
Discussion started by: TheZeusMan
3 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)