Sponsored Content
Top Forums UNIX for Dummies Questions & Answers find files and using them as input arguements for another command Post 4075 by alwayslearningunix on Wednesday 18th of July 2001 05:24:40 AM
Old 07-18-2001
Use the touch command with the -t flag to touch a file with the date you need to search FROM, then use the find command with the -newer argument to locate files which are newer than the file you touched.

You can enter the files found into a variable this:

FILES=`find . -type f -newer [touched_file] {} \;

Then use the files in that variable one by in a for loop that holds whatever command you wish to operate on them

i.e.

for x in $FILES
do
[command(s)]
done

Regards.

alwayslearningunix
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

pass input arguements to DB2 SQL script

Hi all, I have a shell script which invoke a sql script using command db2 -tf /home/me/db_housekeep.sql -z /home/me/db_housekeep.log however, this mentioned sql script requires several input arguments, I wonder if one can pass variables from shell script to sql script? thanks! (0 Replies)
Discussion started by: mpang_
0 Replies

2. Shell Programming and Scripting

Script to find files on a given input date

Hello gurus, I need to write a script to find out all the file that got changed on a specific folder since a given input date (Date to be given as Input) Thanx (1 Reply)
Discussion started by: ar.karan
1 Replies

3. Shell Programming and Scripting

Little bit weired : Find files in UNIX w/o using find or where command

Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same. Thanks in advance. Regards Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies

4. Shell Programming and Scripting

Splitting input files into multiple files through AWK command

Hi, I needs to split *.txt files from single directory depends on the some mutltiple input values. i have wrote the code like below for file in *.txt do grep -i -h "value1|value2" $file > $file; done. My requirment is more input values needs to be given in grep; let us say 50... (3 Replies)
Discussion started by: arund_01
3 Replies

5. UNIX for Dummies Questions & Answers

problem with output of find command being input to basename command...

Hi, I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script. I am planning to do like this: if ; then... (2 Replies)
Discussion started by: new_learner
2 Replies

6. UNIX for Advanced & Expert Users

Help-prompt for path and take this as input in find command

HI , I am trying to wite a script that will prompt me saying " what is path that you want to find ?". once i specify the path, the script should put this path in the find command mentioned below and execute the script: find <path> -ctime +200 -type f -exec ls -l {} \; for example : ... (7 Replies)
Discussion started by: bsandeep_80
7 Replies

7. Shell Programming and Scripting

How to redirect a input of find command into a text file

Hello friends, I want a command to print the reult files from find command into a text file.:) Iam looking from forum memebers. PLZ help me.ASAP Thanks in Advance, Siva Ranganath CH (5 Replies)
Discussion started by: sivaranga001
5 Replies

8. Shell Programming and Scripting

Find ordinary files in directory input by user

I need to make a shell script that accepts a directory input by the user. The program searches for the directory and finds if it exists or not. Then if it does exist, it outputs the number of files within that directory. Here's what I have so far. result= echo "Please input a directory:... (5 Replies)
Discussion started by: itech4814
5 Replies

9. Shell Programming and Scripting

Find Files with a input in directories

So i have directories that store logs, 1 directorie for each day, with the name like this : 2012_07_01/ 2012_07_02/ and for each directorie we have the logs, inside them lives the logs for that day, and every log have this name pattern : ... (2 Replies)
Discussion started by: drd0spt
2 Replies

10. UNIX for Dummies Questions & Answers

While loop, input from find command

Hello nix Experts, I am a *nix rookie and have run into this issue, can some one help me here and let me know what I am doing wrong. /home/user1> while read n > do > echo $n > done < <(find . -type f -ctime -1 | grep abc) I am getting the below error: -sh: syntax error near... (5 Replies)
Discussion started by: babyPen1985
5 Replies
uucheck(8)						      System Manager's Manual							uucheck(8)

NAME
uucheck - Checks for files and directories required by uucp SYNOPSIS
uucheck [-v] [-xdebug_level] FLAGS
Displays a detailed explanation of how the uucp program interprets the permissions file. Displays debugging information. The valid range for debug_level is 0 to 9. The higher the number, the more detailed the final report. DESCRIPTION
The uucheck command verifies the presence of the files and directories required by the uucp program. In addition to checking for the pres- ence of files required by uucp, the uucheck command also checks for some errors in the /usr/lib/uucp/Permissions file. The uucheck command does not check for correct file and directory modes or for errors in the /usr/lib/uucp/Permissions file, such as dupli- cate login or machine names. When the uucp program is installed, uucheck verifies that the directories, programs, and support files required to operate the networking facility are present. The command is executed automatically, as one of the first steps in the installation process, before the required uucp directories, programs, and files are actually installed. Issue the uucheck command from the command line after installing uucp, configuring uucp for your site, or making changes in part of the uucp program, such as the /usr/lib/uucp/Permissions file. Note that the uucheck command can only be issued from the command line if you have superuser authority. EXAMPLES
To find out how the uucp program interprets the /usr/lib/uucp/Permissions file, enter: uucheck -v The -v flag instructs the uucheck command to verify that the uucp files exist and displays a detailed explanation of how the uucp programs interpret the permissions file. To set the debug level to 8, enter: uucheck -x8 FILES
Specifies the command path Information about available devices Limits scheduled jobs Limits remote command executions Describes access per- missions for remote systems Describes accessible remote systems Spooling directory Public directory Prevents multiple use of device nn RELATED INFORMATION
Commands: uucico(8), uusched(8), uucp(1), uustat(1), uuto(1), and uux(1) delim off uucheck(8)
All times are GMT -4. The time now is 02:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy