11-17-2015
Quote:
Originally Posted by
Nitesh sahu
yes istat list the time upto seconds but i want to combine both find + istat ..so the result of find command will pass to istat command and give the modification time .
You might want to take a look at the man page of
find, especially the
-exec clause. Reading out loud the man pages of known commands is a service we offer only to VIP members, you know.
I hope this helps.
bakunin
This User Gave Thanks to bakunin For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I would like to know the file modification time till seconds in Unix. So I tried ls -e and it worked fine. This Solaris 5.10
-rw-rw-r-- 1 test admin 22 Sep 12 11:01:37 2008 test_message
But I am not able to run the same command in SOlaris 5.6 and also in AIX/HP
Is there... (3 Replies)
Discussion started by: rahulkav
3 Replies
2. Shell Programming and Scripting
Environment is cygwin on Windows Server 2003 as I could not think how I would achieve this using Windows tools.
What I want ot achieve is the following.
I have a Directory D:\Data which contains further subfolders and files. I need to move "files" older than 6 months modification time to... (4 Replies)
Discussion started by: jelloir
4 Replies
3. UNIX for Dummies Questions & Answers
I noticed the other day that after i used the find command to search for some files, the computer listed them twice -- first with just the names of the files (meaning ./(then the individual file names), then with the directory name, followed by the file names (./directory name/file name). I was... (2 Replies)
Discussion started by: Straitsfan
2 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
I am trying to find some files on a remote machine using the find command.
>ssh -q atukuri@remotehostname find /home/atukuri/ -name abc.txt
/home/atukuri/abc.txt
The above command works fine and lists the file, but if I want to do a long listing of files (ls -l) its not working . ... (2 Replies)
Discussion started by: atukuri
2 Replies
5. Shell Programming and Scripting
Hi,
I have a directory made up of many symbolic links to folders multiple file systems.
I want to return folders modified within the last 50 days, but find is using the link time rather than the target time.
find . -type d -mtime -50
Is there a way to either:
a) Make a symbolic link... (1 Reply)
Discussion started by: earls
1 Replies
6. UNIX for Advanced & Expert Users
Hi ,
How can I get the last access time of a file upto the precesion of seconds in Unix.
I cannot use stat as this is not supported. (10 Replies)
Discussion started by: kanus
10 Replies
7. Shell Programming and Scripting
Hi All,
I need to list the files based modification time of the files from a directory, I cannot use "ls -t" as there are lot of files, which "ls" command cannot handle. New files will land there daily. So iam looking for an alternative through "find"command.
All suggestions are welcomed.
... (6 Replies)
Discussion started by: Kesavan
6 Replies
8. Shell Programming and Scripting
Hi everyone,
I'd like to know if is there a way to list files but ignoring some according to their modification time (or creation, access time, etc.) with the command 'ls' alone.
I know the option -I exist, but it seems to only looking in the file name..
Thank you in advance for the... (8 Replies)
Discussion started by: Keyhaku
8 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends,
I am facing a very strange issue . I type something on putty session of servers of my work(locating in North America) and it appears only after 7 seconds or so. I am located in India. It doesn't happen with my colleagues who are sitting next to me :(.
I use the ssh protocol to connect... (4 Replies)
Discussion started by: kunwar
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a main folder 'home'. Lets say there is a folder 'bin' under 'home'. I want to check the list of files under subdirectories present under the /bin directory created in the last 24 hours.
I am using the following find command under home/bin directory:
find . -mtime -1 -print
... (3 Replies)
Discussion started by: DJose
3 Replies
ISTAT(1) General Commands Manual ISTAT(1)
NAME
istat - Display details of a meta-data structure (i.e. inode)
SYNOPSIS
istat [-B num ] [-f fstype ] [-i imgtype] [-o imgoffset] [-b dev_sector_size] [-vV] [-z zone ] [-s seconds ] image [images] inode
DESCRIPTION
istat displays the uid, gid, mode, size, link number, modified , accessed, changed times, and all the disk units a structure has allocated.
The options are as follows:
-B num Display the addresses of num disk units. Useful when the inode is unallocated with size 0, but still has block pointers.
-f fstype
Specify the file system type. Use '-f list' to list the supported file system types. If not given, autodetection methods are used.
-s seconds
The time skew of the original system in seconds. For example, if the original system was 100 seconds slow, this value would be
-100.
-i imgtype
Identify the type of image file, such as raw or split. Use '-i list' to list the supported types. If not given, autodetection
methods are used.
-o imgoffset
The sector offset where the file system starts in the image.
-b dev_sector_size
The size, in bytes, of the underlying device sectors. If not given, the value in the image format is used (if it exists) or
512-bytes is assumed.
-v Verbose output of debugging statements to stderr
-V Display version
-z zone
An ASCII string of the original system's time zone. For example, EST5EDT or GMT. These strings are defined by the operating system
and may vary. NOTE: This has changed since TCTUTILs.
image [images]
One (or more if split) disk or partition images whose format is given with '-i'.
inode Meta-data number to display stats on
AUTHOR
Brian Carrier <carrier at sleuthkit dot org>
Send documentation updates to <doc-updates at sleuthkit dot org>
ISTAT(1)