User Tools

Site Tools


Sidebar



cut

Cut

all characters from position x

cut -c 27-

remove all text after a character

cut -f1 -d":"

This will convert “hello: world” into “hello”.

get last 4 characters (must be a better way)

echo 12345678 | rev | cut -c -4 | rev
cut.txt · Last modified: 2015/03/10 22:58 by rick