Sponsored Content
Full Discussion: find command listing
Top Forums Shell Programming and Scripting find command listing Post 302722021 by Don Cragun on Friday 26th of October 2012 08:04:00 AM
Old 10-26-2012
I said to run ls with the l (letter 'l', not digit '1') and f options with no operands. However, using either -1f or -lf will be fine. But, by specifying a globbing pattern as an operand to ls, the shell that invoked ls expanded *.WAV into a sorted list of filenames before calling ls. It will also work as I intended if you specify one or more operands that are the pathnames of files of type directory.

I repeat: run the command ls -lf(with no file operands) in a directory in which find reported .WAV files that were not in sorted order. It won't produce a listing of just .WAV files and it won't search subdirectories, but it will give you a listing of all files in that directory in unsorted directory order.

Also note that the find command you provided in your 1st posting on this thread:
Code:
find -name *.WAV

is using a non-standard extension I've never seen before. On standard versions of the find utility, the first argument to the find utility would have to be the name of a directory.

Since you didn't quote *.WAVI also have to assume that there were either no .WAV files or only one .WAV files in that directory. Otherwise, the shell would have expanded *.WAV and would have generated another syntax error in find.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find files older than 5 days and remove tem after listing

need help with this ... Find files older than 5 days and remove tem after listing list "test" file older than 5 days and then remove them (1 Reply)
Discussion started by: ypatel6871
1 Replies

2. UNIX for Dummies Questions & Answers

listing year in ls command

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)
Discussion started by: arunkumar_mca
3 Replies

3. Shell Programming and Scripting

find command nonrecurslu listing ls -lrt

---------------------------------------------------------------------- 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)
Discussion started by: RahulJoshi
8 Replies

4. Shell Programming and Scripting

Find problem listing directories even -type f

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)
Discussion started by: Arunprasad
1 Replies

5. UNIX for Dummies Questions & Answers

find command -- listing files twice

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)
Discussion started by: Straitsfan
2 Replies

6. UNIX for Dummies Questions & Answers

Long listing of files using find command on remote server via SSH

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)
Discussion started by: atukuri
2 Replies

7. Solaris

SFTP Command Help - listing files

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)
Discussion started by: slufoot80
1 Replies

8. UNIX for Dummies Questions & Answers

How to find directory listing from root to all files in tree format with details of perm/own/grp?

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)
Discussion started by: 8709711
4 Replies

9. UNIX for Dummies Questions & Answers

Listing only the files under a directory from the result of find command

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)
Discussion started by: DJose
3 Replies

10. AIX

Getting files through find command and listing file modification time upto seconds

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
ENTAGGED(1)						      General Commands Manual						       ENTAGGED(1)

NAME
entagged - Java Audio File Tagger DESCRIPTION
Entagged provides a convenient way of changing the value of tag fields, either manually, or automatically via the freedb database. Entagged can also do a lot of organization work. You can rename your files from their tag in any way you like, including complex directory structures. You can also tag the files from their filename, this avoid copying all the information by hand. Best of all, Entagged hides all the different format complexity, with one unique interface, you can work with mixed file formats eg. you can use freedb with a mixed album of WMA, MP3 and OGG files without worrying! Features * Support for OGG Vorbis files - MP3 (id3v1 and id3v2 tags) files - FLAC Files - MPC(MP+) Musepack Files - APE Monkey Audio Files - WAV files * Handles all files independently of their type (allows to batch files even from mixed types) * Edit essential tag information (Artist-Album-Title-TrackNb-Comment-Genre-Year) easily * Rename files from their tag using any of the above infos with any pattern * Tag files (again using the above fields) from their filename with any pattern * Pattern can use filename but also directory name, easy to create a well structured audio files repository * freedb search using automatically computed cddb id's (the way it is meant to be used). Simply select some files that represent an album, then query and tag. * freedb search using manually searched cddb id. When entagged can't find any match, you can search freedb for a given artist/album and find the correct match yourself, then ask entagged to tag the files. * Supports Multi langage (currently only english,french and spanish) (contributors appreciated) * Recursive processing of all the above operations, easily ! * Text transformation: capitalize, uppercase roman numerals, lowercase, and more that can be used either while tagging or renaming. * Separate freedb and audioformats libraries that can be used independently by anyone who want to read and/or write meta data to audio files DOCUMENTAION
Please see /usr/share/doc/entagged/readme.html HOMEPAGE
http://entagged.sourceforge.net/ AUTHOR
This manual page was written by Varun Hiremath <varunhiremath@gmail.com>, for the Debian project (but may be used by others). October 20, 2006 ENTAGGED(1)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy