Getting last characters of a line with sed command
Hello,i'm a big newbie with Linux script
i want to grab last 8 characters of a line with the seb command? Thanks for your help lulu |
What about this:
echo "987654321" | sed -e 's/^.*\(........\)$/\1/' Will print 87654321 |
Thanks
and for the line: Disk Identifier : disk0s10 I want to grab the last word 'disk0s10' thanks lulu |
Code:
echo "Disk Identifier : disk0s10" | sed -e 's/^.*://' |
Thanks
have a nice day |
All times are GMT -5. The time now is 01:19 AM. |