I don't have write permissions to the directory. Hence I cannot execute this
Is it possible to let me know one single find command, without writing to a dummy file? Similar to the one below;
I use this command to search for a keyword within several files where I know the file name. In this case, I do not know the file name, and I need to search all the files created between two specific dates.
Last edited by methyl; 08-29-2012 at 08:01 PM..
Reason: please use code tags
My problem is with the find command. After looking through the forum I've got -
find . -mtime 2 -name "*"
which gives me a list of all the files modified in the last 2 days.
How do I change this to list files modified in the last 2 hours?
Sorry if this question is already on the forum... (4 Replies)
I need to find out the last modified time for the files which are older than 6 months. If I use ls -l, the files which are older than 6 months, I am just getting the day, month and year instead of exact time. I am using Korn shell, and SUN OS.
Thanks in Advance,
Kiran (3 Replies)
Hi ,
I am trying to find out the List of files modified or added aftter installation of any component on SUN solaris box .
But i am not able to do it using ls or find command .
Can somebody help me out ?
Thanks
Sanjay Gupta (2 Replies)
Hello :D
I am on the shell prompt in a directory, with couple of zip files in it.
How can I
unzip '*.zip' where modified time > 05:00
...please help
Regards
SunnyK (3 Replies)
Hi,
I have some log files created in the following fashion
Ex:
file name modified date
1) s.log1 01-jan-08
2) s.log2 02-jan-08
3) s.log3 03-jan-08
4) s.log4 04-jan-08
Now I want to have the latest 2 logs and delete the others.
Can you tell me the one liner /... (1 Reply)
Hi,
I am currently using the following command:
files=(ls enuCPU??.????.exp ntuCPU??.????.exp)
I need to now change the commmand to store the file names of files that have been modified before datetime equal to say '02/16/2008 20:30:00'
What could I use? (2 Replies)
Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.
Please advice here.Thanks in advance.:b: (7 Replies)
Hi ,
I have been trying to write a perl script to do this job. But i am not able to achieve the desired result. Below is my code.
my $current_value=12345;
my @users=("bob","ben","tom","harry");
open DBLIST,"<","/var/tmp/DBinfo";
my @input = <DBLIST>;
foreach (@users)
{
my... (11 Replies)
I have ~100 text files in a directory that I am trying to parse and output to a new file. I am looking for the words chr,start,stop,ref,alt in each of the files. Those fields should appear somewhere in those files. The first two fields of each new set of rows is also printed. Since this is on a... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT HPUX
whereis
whereis(1) General Commands Manual whereis(1)NAME
whereis - locate source, binary, and/or manual for program
SYNOPSIS
dir... name...
DESCRIPTION
locates source, binary, and manuals sections for specified files. The supplied names are first stripped of leading path name components
and any (single) trailing extension of the form (such as Prefixes of resulting from use of SCCS are also dealt with. then attempts to
locate the desired program in a list of standard places.
Options
recognizes the following command-line options:
Limit search to binary files.
Can be used in conjunction with or
Limit search to source-code files.
Can be used in conjunction with or
Limit search to manual entry files.
Can be used in conjunction with or
Search for unusual entries.
A file is said to be unusual if it does not have one entry of each requested type. Thus, searches for those files in
the current directory that have no corresponding manual entry.
Limit search to binaries located in one or more specified directories.
Can be used in conjunction with or
Limit search to source files located in one or more specified directories.
Can be used in conjunction with or
Limit search to manual entry files
located in one or more specified directories. Can be used in conjunction with or
Terminates the last directory list
or options) and identifies the start of file names.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
Find all the files in that are not documented in with source files in
WARNINGS
uses the system call (see chdir(2)) to run faster. Therefore, path names given with the and options must be absolute path names.
AUTHOR
was developed by the University of California, Berkeley.
FILES whereis(1)