feeding filenames to find command


 
Thread Tools Search this Thread
Operating Systems Solaris feeding filenames to find command
Prev   Next
# 1  
Old 03-31-2009
feeding filenames to find command

Hi,

I am having set of files whose names are stored in a file say "filelist.txt"
Now, I want to find all files contained in "filelist.txt" from my parent directory.

Is there any way to let find command understand "filelist.txt" just like we have option -f in awk.

I donot want to run a loop over my filelist and find one file at a time.

Please help.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to append timestamp in the filenames using find?

Hi, How to change the filenames with timestamp in sub folders I have the following code to select the records. find . -type f -name '*pqr*' -ctime 1 -print The following is the example app_root_dir="/`echo $ScriptDir | cut -d'/' -f2`" $app_root_dir/../BadFiles directory uvw.bad... (3 Replies)
Discussion started by: bobbygsk
3 Replies

2. UNIX for Dummies Questions & Answers

Find and replace mulitple charaters in filenames

I have a virtual pdf printer set up on my server which produces files with the following prefix: smbprn_00000044_Microsoft_Word_-_OriginalFilename.pdfthe number in the center of the file increase by one for each new file. I want to remove all the charaters infront of OriginalFilename.pdf using... (14 Replies)
Discussion started by: barrydocks
14 Replies

3. UNIX for Dummies Questions & Answers

Find the list of filenames that have the string 31 at 4th and 5th position

Hi, Can anyone let me know the command to know the list of filenames that have string 31 in their 4th and 5th positions inside the file: grep -l "31" main*.txt The above grep lists all the files which have 31 at any position but I want filenames having 31 at position 4 and position 5. (8 Replies)
Discussion started by: okkadu
8 Replies

4. UNIX for Dummies Questions & Answers

find & remove characters in filenames

I have a group of files in different directories with characters such as " ? : in the file names. How do I find these files and remove these characters on mass? Thanks (19 Replies)
Discussion started by: barrydocks
19 Replies

5. Shell Programming and Scripting

script to find filenames with latest version and for all seq. numbers in a day

Hi, We have a requirement to find the set of filenames from the group of files in a specified folder based on (i) version number (ii) sequence number such that, for any given sequence number in a day only the latest version filenames have to indentified. Below is the format of... (4 Replies)
Discussion started by: Deepakbabu
4 Replies

6. Shell Programming and Scripting

awk help with find command and filenames with spaces

I have the following code: find /usr/local/test5 -type f -mtime +30 -exec ls -l {} \; | awk '{print $5, $6, $7, $8, $9}' I have this as output: 14 Aug 12 00:00 /usr/local/test5/file1 14 Aug 12 00:00 /usr/local/test5/lastname, The bolded part is where I run into trouble. The actual... (4 Replies)
Discussion started by: streetfighter2
4 Replies

7. Shell Programming and Scripting

Find duplicate filenames and remove in different mount point

Hi Gurus, Do any kind souls encounter have the same script as mentioned here. Find and compare filenames in different mount point and remove duplicates. Thanks a million!!! wanna13e (7 Replies)
Discussion started by: wanna13e
7 Replies

8. Shell Programming and Scripting

Loop assistance, getting array of random numbers and feeding to a command, how-to?

Hi all, I need a little assistance to complete the following script. I would like to take a file with a single number on each line and for each number, run it through a command. The loop will terminate once all numbers have been checked. Here is what I have thus far... COUNTER=`wc -l... (2 Replies)
Discussion started by: boolean2222
2 Replies

9. Shell Programming and Scripting

find filenames like unix commands

Hi, I need to write a small script to search in some specific directories to check if any file is present with a unix command name... Means if the directory contains any files like cat, vi, grep, find etc i need to list those files into a file. Please help Thanks, D (6 Replies)
Discussion started by: deepakgang
6 Replies

10. UNIX for Dummies Questions & Answers

find lowercase filenames

How do I write the command to find all files with any lower case letters in the filename? I have tried find . -name *\(a-z\) and a lot of combinations like that, without success. thanks JP:confused: (4 Replies)
Discussion started by: jpprial
4 Replies
Login or Register to Ask a Question
AVINFO(1)							   User Commands							 AVINFO(1)

NAME
AVInfo - Audio/Video file information automatic extractor SYNOPSIS
avinfo [FILENAME] [OPTIONS] [TEMPLATE] [OUTPUT] avinfo [-l=FILELIST] [OPTIONS] [TEMPLATE] [OUTPUT] avinfo -l- [OPTIONS] [TEMPLATE] [OUTPUT] avinfo [--help | --version] DESCRIPTION
Extracts information from FILENAME or files in FILELIST and generates a report. OPTIONS: -f=extension forces the use of module associated with extension -l=list use filelist (use -l- for stdin) -i=ms delay between files in filelist (in ms) (/*TODO*/) -e=ext exclude an extension (do not apply associated module) -m=number max line length (0 - no restriction) -s=value for advanced tuning of modules (/*TODO*/) -v=name=value set int. variable 'name' to 'value' (text or number) External TEMPLATEs: -th=template header template (string, use without value to disable) -thf=filename get header template from a file -tb=template body template (string, use without value to disable) -tbf=filename get body template from a file -tf=template footer template (string, use without value to disable) -tff=filename get footer template from a file Built-in TEMPLATEs: --default used by default --description for creating (updating) descrpipt.ion files --list for filelist (plain text) generation --html-list for filelist (html) generation --csv-list for filelist (CSV, e.g. for Excel) --short alt. version of --default template --far "nice" formated report (for FAR Manager) (contains MS-DOS pseudographic characters) OUTPUT: -o=file file to write the report to (default is stdout) Other OPTIONS: --help prints this help page --version prints avinfo version and copyright You can use ':' instead of '=' in all OPTIONS or just omit it. TEMPLATEs use AVInfo Simple Script (A.S.S.) syntax. Examples of commands: avinfo file.ogm --raw find . -name '*.avi' -print | avinfo -l- --html-list -o=avilist.html avinfo -l:list -thf:header -tbf=body -tff=footer >report SEE ALSO
Additional documentation for AVInfo can be found in the package documentation directory. (c) George Shuklin, 2001-2004, http://shounen.ru/soft/avinfo/ This is free software. You are welcome to redistribute it under the terms and conditions of GNU General Public License. AVInfo 1.0 alpha 15 [Balalaika] April 2005 AVINFO(1)