Sponsored Content
Top Forums Shell Programming and Scripting how to look in directory for files with diff date Post 28419 by AlarIT.Def on Wednesday 18th of September 2002 09:51:32 AM
Old 09-18-2002
Smilie
you can use util find

for example:

find file with data 4 day ago:
$find /path/to/dir -ctime 4
file with data "today"
$find /path/to/dir -ctime 0



find file with owner root Smilie
$find /path/to/dir -uid 0

find file with owner groupname (gid=500)
$find /path/to/dir -group 500

--
good luck Smilie


---------------------
Sincerely,
Andrew A.Romanchenko
AlarIT programmer
http://www.AlarIT.com
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

diff 2 files; output diff's to 3rd file

Hello, I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3. For example: file 1 123 1234 123456 file 2 123 2345 23456 file 3 should have 2345 23456 I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies

2. Shell Programming and Scripting

Need quick help with diff files in current directory!!!

i have a problem that needs to be solved with CSH , SED or AWK as soon as possible. I need to write a program which creates a directory called backup (if it does not exist). The program then compares all the ordinary files in the current directory and if two files are identical, it moves one of... (1 Reply)
Discussion started by: tkwai
1 Replies

3. Shell Programming and Scripting

Creating date directory and moving files into that directory

I have list of files named file_username_051208_025233.log. Here 051208 is the date and 025233 is the time.I have to run thousands of files daily.I want to put all the files depending on the date of running into a date directory.Suppose if we run files today they should put into 05:Dec:08... (3 Replies)
Discussion started by: ravi030
3 Replies

4. UNIX for Dummies Questions & Answers

Number of files in a directory modified on a date

Hi How to list all the files in a directory that are modified on a particular date? Also need to know the count,i.e number of files modified on a particular date. Thanks Ashok (1 Reply)
Discussion started by: ashok.k
1 Replies

5. Shell Programming and Scripting

Needs to delete particular date files in a directory

Hi Guys, I need help on deleting particular date files in a directory. I have to delete thousands of files with respect to particular date. Could anyone help on this to delete particular date files at a time? Thanks in Advance (2 Replies)
Discussion started by: teddy2882
2 Replies

6. Shell Programming and Scripting

How to find files in directory tree by date

I'm using a directory naming convention to organize files as exemplified here: 2012/Aug/week-20-Aug/23-Thu/tuv.txt 2012/Aug/week-27-Aug/30-Thu/abc.txt 2012/Sep/week-27-Aug/01-Sat/def.txt 2012/Sep/week-03-Sep/07-Fri/xyz.txt How do I write a command that will list the file names abc.txt and... (4 Replies)
Discussion started by: siegfried
4 Replies

7. Shell Programming and Scripting

To get the files in a directory for the given date (User entered date)

Need a ksh script to get the files that were created or modified in a directory on a particular date entered by the user. For example if a directory contains files as below : > ll total 41 -rw-rw-r-- 1 psn psn 199 Aug 23 07:06 psn_roll.sh -rw-rw-r-- 1 psn psn ... (10 Replies)
Discussion started by: ramprabhum
10 Replies

8. UNIX for Dummies Questions & Answers

Rename all Files in a UNIX Directory from one date format to another date format

Hi Unix Gurus, I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format mmddyyyy. The Extension of the files can be .txt or .pdf or .xls etc and is case insensitive ie... (1 Reply)
Discussion started by: pchegoor
1 Replies

9. Shell Programming and Scripting

Diff 3 files, but diff only their 2nd column

Guys i have 3 files, but i want to compare and diff only the 2nd column path=`/home/whois/doms` for i in `cat domain.tx` do whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies

10. Shell Programming and Scripting

List files with date, create directory, move to the created directory

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
obm-moz(1)							 Openbox Pipe Menu							obm-moz(1)

NAME
obm-moz - a pipe-menu for openbox SYNTAX
obm-moz [options] DESCRIPTION
Obm-moz is a pipe menu for openbox. It translates any mozilla-compatible bookmarks into an openbox menu. If no arguments are given, it'll try to find your bookmarks. A bookmarks folder can be passed as an argument, it'll try to find it and build the menu out of that folder. More information about pipe-menus can be found on http://icculus.org/openbox/index.php/Openbox:Pipemenus OPTIONS
-h, --help Show this help message and exit -f, --firefox Look for Firefox bookmarks -b FILENAME, --bookmarks=FILENAME Specify the path to the bookmarks.html file -r ROOT, --root=ROOT Root folder of the bookmarks -n BROWSER, --navigator=BROWSER Command to run the web browser. EXAMPLES
obm-moz -b "/path/to/bookmarks.html" -r "Bookmarks Toolbar Folder" AUTHORS
obm-dir was written by Manuel Colmenero <mkolme@gmail.com> as part of obmenu. This manual page was originally written for the Debian GNU/Linux system by Davide Truffa <davide@catoblepa.org>. SEE ALSO
obmenu(1), obm-dir(1), obm-nav(1), obm-xdg(1), openbox(1) Davide Truffa 1.0 obm-moz(1)
All times are GMT -4. The time now is 05:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy