find command to detect installations


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers find command to detect installations
# 1  
Old 06-13-2007
find command to detect installations

Hi
I'm wondering how I can find all the files which were installed on certain date?

For example: I'm looking for alle the files which were installed on the 11.09.06 on the system.

Does somebody know how to do this?

Thanks

Reto

Last edited by goldenglobe; 06-13-2007 at 07:01 AM.. Reason: correction
# 2  
Old 06-13-2007
Hi goldenglobe,

Use find's -newer predicate and the inversion operator ! (man find). Touch a file with timestamp at the beginning of the time period of interest, and one at the end of interest (man touch)

Code:
touch -t 200609110000 /tmp/my.start
touch -t 200609120000 /tmp/my.end
find /path/to/search -newer /tmp/my.start ! -newer /tmp/my.end -ls

Hope this helps,

-c
# 3  
Old 06-13-2007
if you have stat command, you can use a combination of find and stat , awk to parse the results. just an example. tweak it to suit your needs
Code:
find /home/ -type f -name "*.txt" | xargs stat | awk '/File:/{line=$0}/2006-09-11/{print line" "$0}'

 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Ubuntu

Detect and run command upon mouse movement

I am trying to find a way to run a command upon any movement of a mouse. The 1st statement shows the mouse co-ordinates. So it can detect mouse movement. xinput test 9 First list input devices: $ xinput list If possible, I would like to use it in a bash script. (2 Replies)
Discussion started by: drew77
2 Replies

2. Shell Programming and Scripting

Htop - How to detect exact command running at background

Hello, I am running a python file from terminal and I wish to see which code is running at background. When I use htop, I see just a few commands, unable to see entire command. htop > report nano report Output: ^ Following parts of ffmpeg line is not shown by htop. Just showing... (7 Replies)
Discussion started by: baris35
7 Replies

3. Shell Programming and Scripting

Using grep command to detect presence of script run

i have this line of code on a korn shell script to detect the presence of script run: ISRUNNING=`ps -eaf -o args | grep -i sfs_load_file.ksh | grep -v grep | wc -l` sometimes this returns either 1, 2, or 3. when it returns 2 or 3 that tells us that there are more than 1 script of... (8 Replies)
Discussion started by: wtolentino
8 Replies

4. Red Hat

How to detect kind of command for root only?

Dear all, Please help me clarify why i cannot run command in /sbin directory (ex: /sbin/fdisk -l )! I've checked permission on files which belong /sbin directory with execute permission. However, i still cannot run with normal user. Sorry for my English. thanks all, (5 Replies)
Discussion started by: all4cfa
5 Replies

5. AIX

how to detect removable disks or volume in AIX using command

Hi I am new to AIX and any help regarding the same would be really appriciated, thanks In advance. My priority issue is how to detect from command line that the volume / disk on AIX machine is a USB or removable disk /volume and if possible can we list out details for that disk / volume (1 Reply)
Discussion started by: mak_mailbox
1 Replies

6. Shell Programming and Scripting

simple script detect to find OS version/flavour

Hi, A newbie question. Following script gives no output. =============================== root@srv # cat /etc/redhat-release | awk {'print $1}' Red root@srv # cat 123.sh if (( `cat /etc/redhat-release | awk {'print $1}'` != CentOS )); then { echo "System runs on Redhat Linux. ... (13 Replies)
Discussion started by: fed.linuxgossip
13 Replies

7. UNIX and Linux Applications

How to automatically detect command failure

I have a shell script. In this script I executes various command and my requirement is such that if any command fails I've to terminate the shell script. To achieve this objective I'm checking the value of $? after each command and if its value is greater thaen I 'exit' the script. Is there... (2 Replies)
Discussion started by: ashok2008
2 Replies

8. HP-UX

Multiple Perl installations on HP-UX

This will undoubtedly seem like a problem that should be easily resolved but... We are having some 'issues' getting multiple versions of Perl installed on our HP-UX servers (11.11 & 11.23). Now, I'm not a Sys Admin but I believe the reason behind this is that the Perl installation which comes... (2 Replies)
Discussion started by: Macer
2 Replies

9. Solaris

Network Installations of Solaris

First off, I'm pretty new to Solaris, although I know Windows very well. I have a mixed Wintel, Linux and SPARC/Solaris environment and am looknig for a way to make short work of installing Solaris. I know there is a network booting option and there are the WebStart (configurable) and JumpStart... (1 Reply)
Discussion started by: BeekerC
1 Replies
Login or Register to Ask a Question