Home tmade.de

Home Wiki

cut

cut -d " " -f1 | head -n 1                  #Output first column and first line
cut -d ":" -f 1,3 /etc/passwd               #Output 1th and 3rd line
cut -d " " -f1 | sed sed -n "$i"p file      #search line "i" in file
cut -d " " -f1 | sed -n "1"p file           #search line "1" in file
shell/cut.txt · Last modified: 2018/09/21 20:55 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki