Ken's Lotto Syndicate

Powerball Syndicate Home Page

Site Tools


bash_one-liners

bash one-liners

To remove everything after and including the final '.' use: ${var%.*}
To remove the last 4 characters from 'string', use: new_string=${string::-4}

sed


Substitute any of listed characters with one command

sed s'/[":=]/ /g'

Brackets mean “any one of”.

bash_one-liners.txt · Last modified: by 127.0.0.1