Recent Changes - Search:

Softwares

.

CutCommandExample

Example 1

  [linux@wordsworth ~]$ w |cut -c1-12
  21:48:34 up
  USER     TTY
  root     pts
  linux    :0
  root     pts
  root     pts

Example 2

  [linux@wordsworth ~]$ cat passwd
  kunjako:x:1201:1202::/home/kunjako:/bin/bash
  [linux@wordsworth ~]$ cat passwd |cut -d: -f7
  /bin/bash
  [linux@wordsworth ~]$ cat passwd |cut -d: -f6
  /home/kunjako
  [linux@wordsworth ~]$ cat passwd |cut -d: -f1,6
  kunjako:/home/kunjako
  [linux@wordsworth ~]$ cat passwd |cut -d: -f1,7
  kunjako:/bin/bash
Edit - History - Print - Recent Changes - Search
Page last modified on July 07, 2007, at 06:13 PM