09-05-2002
Performing a non-recursive find in Unix
I need to perform a non-recursive find in Unix. Sounds simple, but it doesn't actually work. The command ALWAYS searches through the subdirectories.
Any ideas? I am on DEC Unix :-(
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello, I am trying to search a directory for all files matching "G*" without looking in sub-directories "success" and "error". I've searched this forum and found the following syntax, but can't make it work:
find . \( ! -name success -prune -name error -prune \) -type f -name "G*"
Have... (6 Replies)
Discussion started by: alexkav
6 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone,
I'm using a recursive find (you know the type, find . -name qwert*) to find a set of files. However, because I'm new to the system and there is not much documentation about these particular files I'm trying to find them using this recursive find.
I started off at the location... (3 Replies)
Discussion started by: spanish_tony
3 Replies
3. Shell Programming and Scripting
I would like to write shell/perl script which identifies the top unix processes that are performing high disk I/O's or/and writes
If any one knows the solution please help me?
-Swamy (0 Replies)
Discussion started by: avsswamy
0 Replies
4. UNIX for Advanced & Expert Users
Guys,
Is there any UNIX command that captures the 'Unix process which is performing high disk I/O reads and writes'.
can you help me in this?
-Swamy (6 Replies)
Discussion started by: avsswamy
6 Replies
5. Shell Programming and Scripting
I HAVE A TEXT FILE CONTAINING THE VALUES
1.CPP
2.CPP
3.CPP
4.CPP
5.CPP
6.CPP
I WANT TO TAKE EACH .CPP AND USE THE FIND COMMAND TO FIND THE LATEST VERSION OF THE FOLDER IN WHICH IT IS PRESENT.
HOW DO I IMPLEMENT IT IN A WHILE LOOP
I TRIED SOMETHING LIKE THIS
WHILE
CAT... (3 Replies)
Discussion started by: ultimatix
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have question is related to find command. I want to find command should search in current folder only not recursive mode(sub-folders).
I found a one way of,
find . \( -name success -prune \) -o -name "Rajini*"
How ever, my current folder is having lots sub-folders and am not... (7 Replies)
Discussion started by: Nagapandi
7 Replies
7. Shell Programming and Scripting
Hi all,
I need to get the latest file. I have found this command "ls -lrt" that is great but not recursive.
Can anyone help?
Thanx by advance. (7 Replies)
Discussion started by: 1or2is3
7 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I am currently writing a find-and-remove kind of script that is to be used for Solaris and Linux.
Currently am using the find command below that I is in find only current directory (universal) | commandlinefu.com
This however gives me the "ksh: /bin/find: arg list too long" error... (6 Replies)
Discussion started by: newbie_01
6 Replies
9. UNIX for Dummies Questions & Answers
Hello Unix Gurus,
I am using the following find commands:
1)
find Input_Path -name '*.' -exec mv -f
{} Outputpath \;
2)
find Inputpath -name '*.' -exec cp
{} Outputpath \;
3)
find Somepath -name '*.'
Now the problem is my Unix version does not support maxdepth Option for find... (7 Replies)
Discussion started by: pchegoor
7 Replies
10. UNIX for Dummies Questions & Answers
Is there a way to use the find command to recursively scan directories for files greater than 1Gb in size and print out the directory path and file name only?
Thanks in advance. (6 Replies)
Discussion started by: jimbojames
6 Replies
FAPG(1) User Manuals FAPG(1)
NAME
fapg - Fast Audio Playlist Generator
SYNOPSIS
fapg [ options ] /path/to/mp3/dir1 [ /path/to/mp3/dir2 ... ]
DESCRIPTION
fapg is a tool to generate list of audio files (Wav, MP2, MP3, Ogg, etc) in various formats (M3U, PLS, XSPF, HTML, RSS, etc). It is very
useful if you have a large amount of audio files and you want to quickly and frequently build a playlist.
It is coded in C to be as fast as possible, and does not use any specific audio library (like ID3Lib). This allow you to deploy it faster
and easier, and to have better performances since the less informations are loaded. On the other hand, this tool is not (yet) compatible
with all the known formats.
OPTIONS
-b|--backslash
Replace the '/' with '' in Unix path.
-d|--debug
Display useful messages if the program fails ;)
-f|--format=m3u|pls|xspf|html|rss|pla|txx
Choose which format of playlist you want to generate (default is m3u).
-g|--genre=#:#:...
Choose which genres (numerical values only) will be included in the generated playlist (default is all).
-n|--nohardlink
Avoid to parse twice the files because of hardlinks.
-o|--output=/path/to/file.m3u
Choose the name of the playlist file to generate (default behavior is to display on standard output).
-p|--prefix=/the/prefix
Replace the Unix path with another string (useful to give a Samba path for example).
-r|--recursive
Recursively read the subdirectories.
-w|--windows
Replace all Unix characters with Windows characters.
-x|--exclude=#:#:...
Choose which genres (numerical values only) will be excluded in the generated playlist (default is none).
-c|--command=<intern|...>
External binary or script that produces additional fields for RSS feeds (slow).
-s|--stdin
Read filenames and/or directories from standard input instead of command line.
EXAMPLES
Generate a PLS playlist for an album: fapg --format=pls --output=~/path/to/album/list.pls ~/path/to/album
You have a file server using Samba which shares a large amount of audio files for Windows powered computers using Winamp. The directory on
the server containing the files is /samba/mp3 and is visible on the Windows network as \servermp3 : cd /samba/mp3 && fapg --backslash
--output=/samba/mp3/list.m3u --prefix='\servermp3' --recursive --windows ./
An HTML playlist for an album: fapg --output=fapg.html ~/path/to/album
A playlist that contains all your classical tracks may receive the genres to include (or exclude) in one or multiple portions fapg
--genre=32:105 --genre=106:104:103 /path/to/all/music
Generate a podcasting XML file using an external program rss.sh to generate a detailed description: fapg --output=dir.xml -f rss -c
/usr/local/bin/rss.sh -r --prefix=http://thisserver/basedir path/to/mp3
Generate a playlist that will work on a Sansa e200 series MP3 player: fapg -f pla -o /path/to/playlist.pla /path/to/all/music
if command starts with intern the build-in description (Author,Title,Link) is generated. Please note that in all given directories ( and
in ...basedir/xml ) files called podcast.jpg are referenced. Many header fields are set to defaults using environment variables like LOG-
NAME or LANG.
AUTHOR
Antoine Jacquet <royale@zerezo.com>, http://royale.zerezo.com/fapg/. Manpage by Thomas Kappler <thomas.kappler@stud.uni-karlsruhe.de>.
Linux JANUARY 2007 FAPG(1)