I tried ls -lf on a subdirectory of the main directory Music,. and got a huge list of files in 3 columns
The output is in unsorted order.
I then scanned the output for .WAV files ie reading Column 1 from top to bottom, then Column 2 and then Column 3 and it gives the same output as this find command run on the top level directory ..
So does the find command work like this ? It takes the input directory and goes through all sub directories and executes
and filters from that the files of the required type ( here in this case *.WAV)
However, I have another doubt, when I ran the find command on the top level Music Directory, the Music Directory had no *.WAV files in it , but only in the directories beneath it, thus it gave the desired output,. I expected a similar output when I go to the Hindi Music Directory, I thought that find would give me all the *.WAV files in that directory and directories beneath it.
But it just returns one line of the output and throws up and error !
Hi all ..
As per rule i searched the forum i am not able found out ...
I want to display the year in when listing the files .. when i use ls -lt it is not displaying files with recent 6 month old ..
I know that perderabo has written a script for that if you give that link it will be... (3 Replies)
----------------------------------------------------------------------
I have tried
find . type -f -exec ls -lrt {} \;
but it listed files recursively ,I need only that dir files not internal dir file.
--------------------------------------------------------------------- (8 Replies)
Hi All,
#!/bin/ksh
find /home/other -ls -type f -xdev | sort -nrk7 | head -2 >bigfile.txt
The above is my script, which writes the large file into a file called bigfile.txt. My script contains only the above two lines.
after execution i am getting the output like
find: cannot chdir to... (1 Reply)
I noticed the other day that after i used the find command to search for some files, the computer listed them twice -- first with just the names of the files (meaning ./(then the individual file names), then with the directory name, followed by the file names (./directory name/file name). I was... (2 Replies)
Hi ,
I am trying to find some files on a remote machine using the find command.
>ssh -q atukuri@remotehostname find /home/atukuri/ -name abc.txt
/home/atukuri/abc.txt
The above command works fine and lists the file, but if I want to do a long listing of files (ls -l) its not working . ... (2 Replies)
Ok I am just going to explain what I am running step by step
sftp user@hostname
sftp > ls < when I run the command "ls" I get a long listing the old version,
on the new version I get a short listing
how can I change my new version to give me long listing by default (1 Reply)
Hi,
My apologies if my query is already available on this forum but I am new and could not find.
I need a script to list all directories/sub directories and files with permissions/groups/owners. The script would run from home directory and should capture every directory. How do I do this?
... (4 Replies)
Hi,
I have a main folder 'home'. Lets say there is a folder 'bin' under 'home'. I want to check the list of files under subdirectories present under the /bin directory created in the last 24 hours.
I am using the following find command under home/bin directory:
find . -mtime -1 -print
... (3 Replies)
I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds.
Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)
Discussion started by: Nitesh sahu
4 Replies
LEARN ABOUT DEBIAN
dir2ogg
DIR2OGG(1) General Commands Manual DIR2OGG(1)NAME
dir2ogg - Convert MP3, WAV, and M4A files to OGG format
SYNOPSIS
dir2ogg [ options ] ( filename [filename2] ... || directory [directory2] ... || [cdrom-device] ... )
DESCRIPTION
dir2ogg converts MP3, M4A, WMA and WAV files to the open-source OGG format. dir2ogg is a python script that simply binds together mpg123,
faad, and oggenc making it easier for the user to convert his/her music files. OGGs are about 15 to 20 percent smaller than MP3 files, with
the same relative audio quality. dir2ogg can be called with the -d flag at the command line to convert any number of directories at once,
or given MP3, M4A, WMA, and/or WAV filenames as arguments, dir2ogg will convert only those files. If converting WAV, M4A or WMA files with
-d you must add the -w, -m or -W command line flags respectively. These flags are not neccesary unless using -d. Note that converting M4A
files requires you to have faad installed, and converting WMA files requires mplayer.
Keep in mind that converting from MP3 or M4A to OGG is a conversion between two lossy formats. This is fine if you just want to free up
some disk space, but if you're a hard-core audiophile you may be disappointed. I really can't notice a difference in quality with 'naked'
ears myself.
General Options
-h or --help
print quick usage details to the screen.
-d or --directory
convert all MP3 files in directory. WAV and M4A files will be converted if used with the -w and -m command line flags. This option
is for compatibility purposes only and does not need to be specified anymore.
-r or --recursive
like -d but descends recursively into directories.
-c or --cdda
Convert an audio CD into ogg. You may pass the device as an argument to the script (default: /dev/cdrom). Requires cdparanoia orq
icedax or mplayer
-p or --preserve-wav
preserve all WAV files. By default they are deleted.
-P or --no-pipe
Do not use pipes to send data from the decoder to the encoder, use temporary wav files instead.
--delete-input
Delete the input file after conversion
-v or --verbose
increase dir2ogg's verbosity.
-Q or --quiet
Do not display progress messages, except the name of the file which is currently converted. Some decoders provide no way to disable
messages and thus may still display some.
Conversion options
--convert-all
Convert all supported audio files found in the directories given on the command-line to Ogg Vorbis.
-f or --convert-ape
Convert all APE (Monkey's Audio) files found in the directories given on the command-line to Ogg Vorbis, using either ogg123 or flac
or mplayer.
-f or --convert-flac
Convert all FLAC (Free Lossless Audio Codec) files found in the directories given on the command-line to Ogg Vorbis, using ogg123 or
flac or mplayer.
-m or --convert-m4a
convert all M4A (MPEG-4 Audio) files found in the directories given on the command-line to Ogg Vorbis, using faad or mplayer. For
decoding ALAC (Apple Lossless) files, 'alac-decoder' may be used.
-m or --convert-mpc
convert all MPC (MusePack) files found in the directories given on the command-line to Ogg Vorbis, using mpcdec or mplayer.
-W or --convert-wma
Convert all WMA (Windows Media Audio) files found in the directories given on the command-line to Ogg Vorbis, using mplayer.
-w or --convert-wav
Convert all WAV files found in the directories given on the command-line to Ogg Vorbis.
-V or --convert-wv
Convert all WV (WavPack) files found in the directories given on the command-line to Ogg Vorbis.
-n or --no-mp3
ingore all MP3 files found in directories given on the command-line.
--(ape|cd|flac|m4a|mp3|mpc|wma|wv)-decoder=COMMAND
Set the decoder you want to use for one filetype, e.g.: --mp3-decoder=lame. Run dir2ogg --help to see the available decoders.
-qN or --quality=N
OGG quality. N is a number between -1 and 10. Default is 3. Decimals are OK (ie: 3.7)
-t or --smart-mp3
Try to use the same quality as the input file. MP3 input only!
SEE ALSO mpg123(1), mplayer(1), oggenc(1)BUGS
Enter you bug reports in Launchpad at https://bugs.launchpad.net/dir2ogg
AUTHORS
0.10 and newer: Julian Andres Klode <jak@jak-linux.org>
0.9.3 and older: Darren Kirby <d@badcomputer.org>
CONTRIBUTORS
original wma support: Cameron Stone <camerons@cse.unsw.edu.au>
smart-mp3: Marek Palatinus <marek@palatinus.cz>
dir2ogg 0.11.8 2009-08-04 DIR2OGG(1)