10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to write a script where I will need to look for a specific word in the log file and I am aware this can be done by grep for example.
As there will be multiple entries for this I want to grep the last one to enter the log... how would I go about this - would I have to use... (5 Replies)
Discussion started by: simpsa27
2. Shell Programming and Scripting
I have requirement to read the file / folder based on the latest date and download the file and folder.
There will be files and folders in the location like
20140710-183153... (7 Replies)
Discussion started by: Praveen Pandit
3. UNIX for Dummies Questions & Answers
i have files like
when i try to fetch the file in the next day. it shud pick the third file..
plz help me..
and i use `date +"%Y%m%d"` command to fetch..it fetches the current date... (2 Replies)
Discussion started by: applepie
4. Shell Programming and Scripting
We've a list of files that gets created on a weekly basis and it has got a date and time embedded to it. Below are the examples. I want to find out how to get the latest files get the date and time stamp out of it.
PQR123.PLL.M989898.201308012254.gpg... (1 Reply)
Discussion started by: rudoraj
5. Shell Programming and Scripting
hi i need the shell script to get the file with latest date.
for example in my input folder i have files like
now my output folder should have the file with latest date i.e..file_20120212.txt
i want to get the latest file .. i.e is should take... (6 Replies)
Discussion started by: hemanthsaikumar
6. Shell Programming and Scripting
Need a small help. I have a log file which keeps updating for every Minute with multiple number of lines. I just want to grep few properties which has latest Date and Time to it. How do i do it?
I wanted to grep a property by name "Reloading cache with a maximum of" from the... (4 Replies)
Discussion started by: nvindraneel
7. UNIX for Dummies Questions & Answers
From a file I need to remove duplicate rows based on the first column data but also we need to consider a date column where we need to keep the latest date (13th column).
I know how to take out the duplicates but I couldn't figure out... (5 Replies)
Discussion started by: shash
8. Shell Programming and Scripting
not sure if this has been posted b4 but i try to search but not valid.
this is my question:
when i do a ls -ltr there will be a list generated as follows:
-rw-r--r-- 1 root sys 923260 Jan 10 04:38 FilePolling.41025.083TL021.xml
-rw-r--r-- 1 root sys 1761337 Jan 10 04:40... (12 Replies)
Discussion started by: lweegp
9. UNIX for Dummies Questions & Answers
I grep for a pattern in a list of files.
"grep -i -l $pattern *.datx*"
it may give me n number of files.
say for eg, it gives me 2 files.
out of these 2 files I need to get the... (7 Replies)
Discussion started by: prsshini
10. Shell Programming and Scripting
I want to loop through files in a directory but omit the file with the latest date in my list of files. How would I accomplish this?
Thanks (2 Replies)
Discussion started by: stringzz