Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > sed expression to delete all but last character
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 27th September 01:26
harlan grove
External User
 
Posts: 1
Default sed expression to delete all but last character



....

sed -n 's/.*\(.\)$/\1/p'
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666