05-02-2013
Yes, . means the current directory, and means "find in current directory and subdirectories".
The f is part of "-type f" and means "find regular files".
The -mmin -5 part was covered before.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have to capture the creation date and time stamp for a file. The ls command doesn't list all the required information. I need year, month, day, hour, minute and second.
Any ideas... (1 Reply)
Discussion started by: Xenon
1 Replies
2. UNIX for Dummies Questions & Answers
I am trying to insert a line with a date stamp in a file that is used to monitor activity in one of our directories. By doing this, I want to grep that file each day and go to the last entry for each time a error occurred and pull all errors generated if any exist. If error exists I want that error... (3 Replies)
Discussion started by: shephardfamily
3 Replies
3. Shell Programming and Scripting
Looking for a shell script or a simple perl script . I am new to scripting and not very good at it .
I have 2 directories . One of them holds a text file with list of files in it and the second one is a daily log which shows the file completion time. I need to co-relate both and make a report.
... (0 Replies)
Discussion started by: breez_drew
0 Replies
4. UNIX for Dummies Questions & Answers
Hi
When i do ls -ltr <file1> then it shows me the date and time of the file
if - for whatever reason file has future date/time stamp then ls -ltr is not showing the time, it just shows only date part ... even if time is ahead by 2 hr than current time.
suppose a file was copied from INDIA... (3 Replies)
Discussion started by: reldb
3 Replies
5. Shell Programming and Scripting
Hi
I use "touch -t xxxxxxxx" command to set date/time stamp of a file. My requirement is to read the date/time stamp of a file and apply it to another file.
Is there anyway to do it simple instead of manually taking date/stamp of first file?
TIA
Prvn (2 Replies)
Discussion started by: prvnrk
2 Replies
6. Shell Programming and Scripting
Hi!
Please see our current script:
#!/usr/bin/ksh
if (egrep "This string is found in the log" /a01/bpm.log)
then
mailx -s "Error from log" me@email.com, him@email.com </a01/bpm.log
fi
To the above existing script, we need to add the following change:
1) After finding the string,... (7 Replies)
Discussion started by: atechcorp
7 Replies
7. Shell Programming and Scripting
Hi All,
Please help.
I have requirement to read the file / folder based on the latest date and download the file and folder.
There will be files and folders in the location like
20140630-144422
20140630-144422.csv
20140707-182653
20140707-182653.csv
20140710-183153... (7 Replies)
Discussion started by: Praveen Pandit
7 Replies
8. Shell Programming and Scripting
I am developing one script which will take log file name, output file name, date, hour and minute as an argument and based on these inputs, the script will scan and capture all the error(s) that have been triggered from a given time. Example: script should capture all the error after 13:50 on Jan... (2 Replies)
Discussion started by: ROMA3
2 Replies
9. Shell Programming and Scripting
find /app/data -name "Availability" -
Below is the output now i need to filter based on latest modified timestamp.
I know 3 is the latest modified time stamp but i tried different options but only filtering docs and not on headnote..Can any one tell me how to do that..
... (2 Replies)
Discussion started by: vkiyv05
2 Replies
10. Shell Programming and Scripting
I have a file hello.txt which was created today (today's date timestamp)
I wish to change its date timestamp (access, modified, created) to 1 week old i.e one week from now.
uname -a
SunOS mymac 5.11 11.2 sun4v sparc sun4v
Can you please suggest a easy way to do that ? (12 Replies)
Discussion started by: mohtashims
12 Replies
TP(1) General Commands Manual TP(1)
NAME
tp - manipulate tape archive
SYNOPSIS
tp [ key ] [ name ... ]
DESCRIPTION
Tp saves and restores files on DECtape or magtape. Its actions are controlled by the key argument. The key is a string of characters con-
taining at most one function letter and possibly one or more function modifiers. Other arguments to the command are file or directory
names specifying which files are to be dumped, restored, or listed. In all cases, appearance of a directory name refers to the files and
(recursively) subdirectories of that directory.
The function portion of the key is specified by one of the following letters:
r The named files are written on the tape. If files with the same names already exist, they are replaced. `Same' is determined by
string comparison, so `./abc' can never be the same as `/usr/dmr/abc' even if `/usr/dmr' is the current directory. If no file
argument is given, `.' is the default.
u updates the tape. u is like r, but a file is replaced only if its modification date is later than the date stored on the tape;
that is to say, if it has changed since it was dumped. u is the default command if none is given.
d deletes the named files from the tape. At least one name argument must be given. This function is not permitted on magtapes.
x extracts the named files from the tape to the file system. The owner and mode are restored. If no file argument is given, the
entire contents of the tape are extracted.
t lists the names of the specified files. If no file argument is given, the entire contents of the tape is listed.
The following characters may be used in addition to the letter which selects the function desired.
m Specifies magtape as opposed to DECtape.
0,...,7 This modifier selects the drive on which the tape is mounted. For DECtape, x is default; for magtape `0' is the default.
v Normally tp does its work silently. The v (verbose) option causes it to type the name of each file it treats preceded by the
function letter. With the t function, v gives more information about the tape entries than just the name.
c means a fresh dump is being created; the tape directory is cleared before beginning. Usable only with r and u. This option is
assumed with magtape since it is impossible to selectively overwrite magtape.
i Errors reading and writing the tape are noted, but no action is taken. Normally, errors cause a return to the command level.
f Use the first named file, rather than a tape, as the archive. This option currently acts like m; i.e. r implies c, and neither
d nor u are permitted.
w causes tp to pause before treating each file, type the indicative letter and the file name (as with v) and await the user's
response. Response y means `yes', so the file is treated. Null response means `no', and the file does not take part in whatever
is being done. Response x means `exit'; the tp command terminates immediately. In the x function, files previously asked about
have been extracted already. With r, u, and d no change has been made to the tape.
FILES
/dev/tap?
/dev/rmt?
SEE ALSO
ar(1), tar(1)
DIAGNOSTICS
Several; the non-obvious one is `Phase error', which means the file changed after it was selected for dumping but before it was dumped.
BUGS
A single file with several links to it is treated like several files.
Binary-coded control information makes magnetic tapes written by tp difficult to carry to other machines; tar(1) avoids the problem.
7th Edition April 29, 1985 TP(1)