10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to find todays files only in the "root directories like /etc, /opt etc.
I do not want to search in my home directory or any of its subdirectories.
That's hard because a directory listing does not show the year?
-rw------- 1 andy andy 22487 Oct 12 13:40 .xsession-errors
... (8 Replies)
Discussion started by: drew77
8 Replies
2. UNIX for Beginners Questions & Answers
How to list todays file in perticular folder
Moved thread to appropriate forum (9 Replies)
Discussion started by: pspriyanka
9 Replies
3. UNIX for Dummies Questions & Answers
I am trying to include a snippet in my script to check if the file created is having today's date.
eg: File name is : ABC.YYYYMMDD-nnn.log
The script should check if 'YYYYMMDD' in the above file name matches with today's date.
Can you please help me in achieving this.
Thanks in advance!! (5 Replies)
Discussion started by: kiran1112
5 Replies
4. Shell Programming and Scripting
Hi,
I unable to find the direct command get the total count for the below files with today date.
ls -lrt c90.txt n5.txt t1.txt k3.txt h9.txt s1.txt n2.txt a123.txt
-rw-rw-r-- kkk klkl 980 Apr 26 19:00 c90.txt
-rw-rw-r-- kkk klkl 80 Apr 26 19:00 n5.txt
-rw-rw-r-- kkk klkl 12890 Apr 26... (3 Replies)
Discussion started by: onesuri
3 Replies
5. UNIX for Dummies Questions & Answers
HI All,
At present in my server the log folder was filled up and causing memory issue.
So I am planning to write a script in such a way that the files which are older than 30 days will be deleted and also need to find the files which were not compressed and need to compress this file.... (4 Replies)
Discussion started by: arumilli
4 Replies
6. Shell Programming and Scripting
Hi All,
I am mediator Shell programmer, Just have an hands on experice :-), i am writing a shell scirpt to list logs of todays date from /var/log/messages.
I need to ur kind help where if i run this script from cron. the script should filter todays logs only from /var/log/messages.
Below... (4 Replies)
Discussion started by: anand.kulkarni
4 Replies
7. Shell Programming and Scripting
Hello guys - I am new to Unix.
I am trying to understand how to grep a perticular string in todays file?
I am trying this syntax but not getting what I am looking for:
% grep `date '+%d/%b/%Y'`
For instance there are 2 files generated today with same data. I am trying to find them and... (21 Replies)
Discussion started by: DallasT
21 Replies
8. Shell Programming and Scripting
Hi Friends,
How to list todays file from a directory listing of files for amny dates.
I tried with the following options but not working :
find . -name "esi01v*" -mtime 1 -ls
find . -name "esi01v*" -ctime 1 -ls
find . -name "esi01v*" -mtime 1
Please advise (19 Replies)
Discussion started by: unx100
19 Replies
9. Linux
Daily one file will dropped into this directory.
Directory: /opt/app/jt/drop
File name: XXXX_<timestamp>.dat.gz
I need to write a script which checks whether the file is dropped daily or not.
Any idea in the script how can we compare timestamp of the file to today's date?? (3 Replies)
Discussion started by: Rajneel
3 Replies
10. Shell Programming and Scripting
i want to delete the time stamp from the file which have a date of yester day
640878 Nov 6 09:08 fbres.01.20031106:09:08:30
here is what my ls -lt command shows in current directory
it want it to be
640878 Nov 6 09:08 fbres.01.20031106
thanks (5 Replies)
Discussion started by: maverick
5 Replies