Search Results

Search: Posts Made By: Jroyal
1,818
Posted By RudiC
Depending on what your system and date version...
Depending on what your system and date version is, $ date +%Y%V
201252
will give you the respective file name prefix.
1,818
Posted By itkamaraj
Above code will not get the latest file. ...
Above code will not get the latest file.

for getting the latest file, you can use it like

ls -1rt *.txt | tail -1
In the above code -1rt --> its numeric 1 ( not a letter L )


ls -lrt...
Showing results 1 to 2 of 2

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