10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
Discussion started by: Shankar455
2. 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
3. Shell Programming and Scripting
i am having file details having elements mentioned below
Asia jan 18
Europe Jan 19
America Jan 20
I made script but it picks all the elements, i want to pick the elements according to the date to run the script i made cron job.
Please advise how it can work.... (12 Replies)
Discussion started by: rajjev_saini123
4. UNIX for Dummies Questions & Answers
I have one query that there is a folder in which daily several logs files are getting created , I reached to that location through putty but what I observer that 10 files of different date are been created with same name , what I need to see is the latest file ...let say the location is ... (5 Replies)
Discussion started by: KAREENA18
5. 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
6. Shell Programming and Scripting
extension file from log (3 Replies)
Discussion started by: NehaKrish
7. Shell Programming and Scripting
OK, I am a little new to AIX 5.3 and also to scripting. I have a shell script that I wrote and am having difficulty pushing specific files by the system date. Here is my script:
RUSER=mike... (4 Replies)
Discussion started by: tfort73
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