Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to sort in grep in second column in /etc/passwd

sort -g -t : -k 2 /etc/passwd           --> 2 means second column
Source by kremvax.net #
 
PREVIOUS NEXT
Tagged: #sort #grep #column
ADD COMMENT
Topic
Name
3+6 =