08-18-2008
To list all the files created today with directory path
Hi,
Can any one tell the command to list all the files that are created as of today from all the directories?
The Command "ls -ltR" is listing all the files.
But I want the list of files that has been created as of today along with the directory path
Thank you in advance.
Regards,
Usha.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am writing a script to find the list of files in dir1 and my script is place in dir2
while doing ls of files dir1 it is displaying with path. I would like to omit the path and display the only file name so that I can pass it to my script as arguments.
for filename in ... (2 Replies)
Discussion started by: madankumar
2 Replies
2. Shell Programming and Scripting
hi,
I am building a script to identify those files created/modified today and with file size 0. I am able to find the files with 0 file size and created/modified in last 24 hrs as shown below but not today (current date), I tried using (touch -t time filenm) but in my version of unix at work it... (7 Replies)
Discussion started by: rushs682
7 Replies
3. Shell Programming and Scripting
I need to figure out how to get all the files from a certian dir ./123/*sat files
and ./230/*sat files and several other directories which have these *sat files in them. I need to calculate how many were created today and how many yesterday from 2:00 pm on the 28th to 2pm on the 29th.
It's a... (1 Reply)
Discussion started by: xgringo
1 Replies
4. Shell Programming and Scripting
Hello experts,
I have written following script to download files which created today.
Unfortunately, it's not working.
test.ksh:
#Defining variables
USR='xxx'
PASSWD='yyyy'
HT='test.test.com'
FILE='S*.pdf'
XFILE=$(echo find . -type f -mtime 0)
ZFILE=$(echo ls -tR|grep 'Jun 8')... (14 Replies)
Discussion started by: dipeshvshah
14 Replies
5. Shell Programming and Scripting
How to list all Subdirectories and files with its full path in a parent directory? (1 Reply)
Discussion started by: johnveslin
1 Replies
6. Shell Programming and Scripting
Dear All,
I want a Hp Ux command to find out the files created today in a particular directory or mountpoint.
Kindly help.
Thanks
Bhaskar (10 Replies)
Discussion started by: sudiptabhaskar
10 Replies
7. Shell Programming and Scripting
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies
8. Linux
Hi, ALL
thanks in advance,
i listed all files using this command
ls -ltr $(date +%Y%m%d)*.xmlbut i would like to exclude the last one created ;
Best regard
MEROUAN
Use code tags, thanks. (4 Replies)
Discussion started by: merouan
4 Replies
9. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
10. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
LEARN ABOUT HPUX
cachefspack
cachefspack(1M) cachefspack(1M)
NAME
cachefspack - pack files and file systems in the cache
SYNOPSIS
packing-list ] cache-directory ] [ file ... ]
DESCRIPTION
The utility is used to set up and maintain files in the cache. This utility affords greater control over the cache, ensuring that the
specified files will be in the cache whenever possible.
Options
recognizes the following options:
Display pathname of the files to be cached.
Specify a
packing-list file containing a list of files and directories to be packed. Options within subdirectories and files can also
be specified. The format and rules governing packing-list are described in packingrules(4). Directories are packed recur-
sively. Symlinks that match a regular expression on a LIST command are followed. Symlinks encountered while recursively
processing directories are not followed.
Print a brief help summary of all the options.
View information about the packed files.
Pack the file or files specified by
file. This is the default behavior.
Strip "./" from the beginning of a pattern name.
Unpack the file or files specified by
file.
Unpack all files in the specified
cache-directory, under which the cache is stored.
Operands
recognizes the following operands:
file A path name of a file to be packed or unpacked.
RETURN VALUE
returns the following values:
Successful completion.
An error occurred.
EXAMPLES
Pack the file projects in the cache.
Pack the files projects, updates and master_plan in the cache.
Unpack the file projects from the cache.
Unpack the files projects, updates and master_plan from the cache.
Unpack all files in the cache1 cache directory.
Use the lists.pkg packing-list to specify files to be packed in the cache. The contents of lists.pkg are as follows:
This example will pack all files in the directory /src/junk with .c and .h extensions that do not contain the string SCCS in the file's
path name.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO
cfsadmin(1M), mount_cachefs(1M), packingrules(4)
cachefspack(1M)