Here are some basic examples of using cut command. $ designates the shell prompt. cut first 10 characters: $ cut -c1-10 cut from third character to the end of the line $ cut -c3- cut 1 and 5 fields from passwd file $ cut -f 1,5 -d : /etc/passwd
© 2005 tiplib.com