Search Results

Search: Posts Made By: erinlomo
14,671
Posted By ctsgnb
# a=whatever20110520 # t=${a%????????} # echo...
# a=whatever20110520
# t=${a%????????}
# echo ${a##$t}
20110520# echo $a | tail -c 9
20110520# echo $a | cut -c$((${#a}-8+1))-
20110520
# echo $a | sed 's/.*\(........\)$/\1/'
20110520
14,671
Posted By Skrynesaver
If you have gnu grep tail -1 filename | grep...
If you have gnu grep
tail -1 filename | grep -Eo '.{8}$'
Showing results 1 to 2 of 2

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