FACTOID # 162: You are more likely to be reported as having been killed by lightning in Cuba than in any other country.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Cut (Unix)

cut is a Unix command which is typically used to extract a certain range of characters from a line, usually from a file. Unix or UNIX is a computer operating system originally developed in the 1960s and 1970s by a group of AT&T Bell Labs employees including Ken Thompson, Dennis Ritchie, and Douglas McIlroy. ...


Syntax

 cut [-b] [-c] [-f list] [-n] [-d delim] [-s] [file] 

Flags which may be used include

  • -b Bytes; a list following -b specifies a range of bytes which will be returned, e.g. cut -b1-66 would return the first 66 bytes of a line. NB If used in conjunction with -n, no multi-byte characters will be split. NNB. -b will only work on input lines of less than 1023 bytes
  • -c Characters; a list following -c specifies a range of characters which will be returned, e.g. cut -c1-66 would return the first 66 characters of a line
  • -f Specifies a field list, separated by a delimiter
  • list A comma separated or blank separated list of integer denoted fields, incrementally ordered. The - indicator may be supplied as shorthand to allow inclusion of ranges of fields e.g. 4-6 for ranges 4 - 6 or 5 - as shorthand for field 5 to the end, etc.
  • -n Used in combination with -b suppresses splits of multi-byte characters
  • -d Delimiter; the character immediately following the -d option is the field delimiter for use in conjunction with the -f option; the default delimiter is tab. Space and other characters with special meanings within the context of the shell in use must be enquoted or escaped as necessary.
  • -s Bypasses lines which contain no field delimiters when -f is specified, unless otherwise indicated.
  • file The file (and accompanying path if necessary) to process as input. If no file is specified then standard input will be used.

A byte is commonly used as a unit of storage measurement in computers, regardless of the type of data being stored. ... Delimiters are marks which are used to seperate subfields of data. ... A Unix shell, also called the command line, provides the traditional user interface for the Unix operating system. ... The standard streams are a set of input and output channels featured in Unix and Unix-like operating systems, and provided by the standard I/O library (stdio. ...

See also

This is a list of Unix programs. ...

External links

Unix command line programs ( view talk edit )
File and file system management: cat | chdir/cd | chmod | chown | chgrp | cp | du | df | fdupes | file | fsck | ln | ls | lsof | mkdir | more | mount | mv | pwd | rcp | rm | rmdir | split | touch | tree
Process management: anacron | at | chroot | cron/crontab | kill | nice | ps | sleep | time | timex | top | renice | wait
User Management/Environment: env | finger | id | locale | mesg | passwd | su | sudo | uname | uptime | w | who | write
Text processing: awk | cut | diff | ex | head | iconv | join | less | more | nkf | paste | sed | sort | tail | tr | uniq | wc | xargs
Shell programming: echo | expr | unset Printing: lp
Communications:
inetd | netstat | ping | rlogin | traceroute
Searching:
egrep | fgrep | find | grep | strings
Miscellaneous:
banner | bc | cal | man | uname | wall | yes

  Results from FactBites:
 
Cut (Unix) - Wikipedia, the free encyclopedia (323 words)
The initial letter is capitalized due to technical restrictions.
cut is a Unix command which is typically used to extract a certain range of characters from a line, usually from a file.
cut -b1-66 would return the first 66 bytes of a line.
Cut - Wikipedia, the free encyclopedia (259 words)
Cut (clothing), a garment's style, as opposed to its fabric or trim
Cut (gems), the finishing process applied to a rough gemstone
Cut (graph theory), a notion in mathematical graph theory
  More results at FactBites »


 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m