Search Results

Search: Posts Made By: Bernardo Jarami
2,444
Posted By Bernardo Jarami
Sorry for the delay but yes, I got my answers
Sorry for the delay but yes, I got my answers
2,444
Posted By Bernardo Jarami
This work s -r icgorldi_*.xml | head -n 1 ...
This work
s -r icgorldi_*.xml | head -n 1
what I am trying to do is to save that file in a variable
something like this
fn=$(ls -ltr icgorldi*.xml | tail -1)
then I need to
rename the file...
2,444
Posted By Bernardo Jarami
I do understand those commands, my problem is...
I do understand those commands, my problem is that you can have more than one file with the extension xml something like this
icgorldi_2421592.xml
icgorldi_2421593.xml
importi_2421592.xml...
2,444
Posted By Bernardo Jarami
How I can find the last file created and move it to a directory?
I have this situation
/u03/app/banjobs> ls -ltr icg*


82 Jun 12 10:37 iicgorldi_2419186.log
56810484 Jun 17 10:35 icgorldi_2421592.xml
2859 Jun 17 10:35 icgorldi_2421592.lis...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy