Hi,
May i know how can i view the lastest content of the log file. Currently, i use the "more" command :
more logfile
However, it will give me the content last year first and i had to keep using the space bar to move down to the lastest content for current date. How can i view the lastest content of the first ?
there are mutiple file nams in the directory. How to return the the lastest files for each file name.
ex.
abc1234_050201
abc1234_050206
abc1234_050208
xyz34_050204
xyz34_050210
xyz34_050218
thanks (4 Replies)
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Hi All ,
I have some fille names in a file which are sorted according to date. for example
file1_123.log 23 Jul 0Kb
file2_123.log 22 Jul 2Kb
file3_123.log 20 Jul 0Kb
file1_456.log 24 Jul 2Kb
file2_678.log 22 Jul 0Kb
file2_678.log 21 Jul 2Kb
here 123 is a... (2 Replies)
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
cd... (2 Replies)
I am using this command to remove all files and folders older than 24 hours;
find /databackup/dbs/* -maxdepth 0 -type d -mtime +0 -exec rm -rf {} \;
However, if/when backups to this folder fail and are not updated, it will completely destroy any backups we have in that folder.
What can I add... (14 Replies)
Hi all,
I'm sorry to post this question, but I searched and searched and search but I did not find an alternative url for this one:
http://www14.software.ibm.com/webapp/set2/abl/bundle?release=52 (53)
I used this site to check for the latest TLs.
Thanks in advanced :)
tex (3 Replies)
Hi,
The app I support has a directory used for debugg files. It has just come to light there are no files in there. Or is there :confused:
Changing into the directory and completing an ls -lta you get no files. This is truly not right for the application. If I go up one directory the... (2 Replies)