{"id":921,"date":"2016-03-23T17:11:15","date_gmt":"2016-03-23T15:11:15","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=921"},"modified":"2018-05-31T16:06:13","modified_gmt":"2018-05-31T13:06:13","slug":"linux-cut-examples","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/","title":{"rendered":"Linux cut Examples"},"content":{"rendered":"<p>In this post, we feature comprehensive Linux cut Examples. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file. It is currently part of the GNU coreutils package and the BSD Base System. It first appeared in AT&amp;T System III UNIX in 1982. Extraction of line segments can typically be done by bytes (-b), characters (-c), or fields (-f) separated by a delimiter (-d \u2014 the tab character by default).<\/p>\n<p>A range must be provided in each case which consists of one of N, N-M, N- (N to the end of the line), or -M (beginning of the line to M), where N and M are counted from 1 (there is no zeroth value). Basically the cut command slices a line and extracts the text.<\/p>\n<p>In this article, we will start with a few basic examples and then explore all the advanced options that &#8216;cut&#8217; provides. First consider the below text file as an example:<\/p>\n<pre class=\"brush:bash\">&gt;cat example.txt\r\nI want to learn linux, learn linux, learn linux.\r\nLinux is the best\r\nLinux forever<\/pre>\n<p>[ulp id=&#8217;SG9vnnKgRCD7iZxf&#8217;]<\/p>\n<h2>1. Printing characters by position<\/h2>\n<p>The cut command can be used to print characters in a line by specifying the position of the characters. To print the characters in a line, use the -c option in cut command. The below cut command prints the fourth character in each line of the file. You can also print more than one character at a time by specifying the character positions in a comma separated list.<\/p>\n<pre class=\"brush:bash\">&gt;cut -c4 example.txt<\/pre>\n<h2>2. Printing characters by range<\/h2>\n<p>You can print a range of characters in a line by specifying the start and end position of the characters. The below cut command prints the characters from fourth position to the seventh position in each line:<\/p>\n<pre class=\"brush:bash\">&gt;cut -c4-7 example.txt<\/pre>\n<h2>3. Printing fields using &#8216;comma&#8217; delimiter<\/h2>\n<p>You can use the cut command just as awk command to extract the fields in a file using a delimiter. The -d option in cut command can be used to specify the delimiter and -f option is used to specify the field position.<br \/>\nThe below cut command uses comma as a delimiter and prints the second and third field in each line:<\/p>\n<pre class=\"brush:bash\">&gt;cut -d, -f2,3 example.txt<\/pre>\n<p>The below image illustrates the execution of the first 3 cut commands:<\/p>\n<figure id=\"attachment_948\" aria-describedby=\"caption-attachment-948\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_1-3.jpg\" rel=\"attachment wp-att-948\"><img decoding=\"async\" class=\"wp-image-948 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_1-3.jpg\" alt=\"Linux cut Examples: Cut Examples 1-3\" width=\"860\" height=\"320\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_1-3.jpg 860w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_1-3-300x112.jpg 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_1-3-768x286.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-948\" class=\"wp-caption-text\">Cut Examples 1-3<\/figcaption><\/figure>\n<h2>4. Printing fields using space delimiter<\/h2>\n<p>The below cut command prints the second field in each line by treating the space as delimiter. You can also print more than one fields by specifying the position of the fields in a comma delimited list.<\/p>\n<pre class=\"brush:bash\">&gt;cut -d' ' -f2 example.txt<\/pre>\n<h2>5. Displaying range of fields<\/h2>\n<p>You can print a range of fields by specifying the start and end position. The below cut command prints the first, second and third fields:<\/p>\n<pre class=\"brush:bash\">&gt;cut -d' ' -f1-3 example.txt<\/pre>\n<h2>6. Displaying first field from file<\/h2>\n<p>The \/etc\/passwd is a delimited file and the delimiter is a colon (:). The cut command to display the first field in \/etc\/passwd file is the following:<\/p>\n<pre class=\"brush:bash\">&gt;cut -d':' -f1 \/etc\/passwd<\/pre>\n<p>The below image illustrates the execution of the previous 3 cut commands:<\/p>\n<figure id=\"attachment_949\" aria-describedby=\"caption-attachment-949\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_4-6.jpg\" rel=\"attachment wp-att-949\"><img decoding=\"async\" class=\"wp-image-949 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_4-6.jpg\" alt=\"Linux cut Examples: Cut Examples 4-6\" width=\"860\" height=\"492\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_4-6.jpg 860w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_4-6-300x172.jpg 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_4-6-768x439.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-949\" class=\"wp-caption-text\">Cut Examples 4-6<\/figcaption><\/figure>\n<h2>7. Displaying fields from 1st to nth<\/h2>\n<p>As we already shown in 5th example, a range of fields can be printed by specifying the start and end position. There is also a possibility to omit the start position and declare only the last. The below cut command prints all fields from first to 3rd using space as a delimiter:<\/p>\n<pre class=\"brush:bash\">&gt;cut -d' ' -f-3 example.txt<\/pre>\n<h2>8. Displaying fields from nth to last<\/h2>\n<p>You can also print all fields by omitting the last position and declaring only the start. The below cut command prints from second field until the last one using space as delimiter:<\/p>\n<pre class=\"brush:bash\">&gt;cut -d' ' -f2- example.txt<\/pre>\n<h2>9. Ignoring lines that do not contain delimiter<\/h2>\n<p>The cut command can be also be used to print only the lines that do not contain a certain delimiter by using the -s option. The below cut command prints only the lines which contain the comma delimiter and fields from 2nd to last:<\/p>\n<pre class=\"brush:bash\">&gt;cut -s -d' ' -f2- example.txt<\/pre>\n<p>The below image illustrates the execution of the previous 3 cut commands:<\/p>\n<figure id=\"attachment_950\" aria-describedby=\"caption-attachment-950\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_7-9.jpg\" rel=\"attachment wp-att-950\"><img decoding=\"async\" class=\"wp-image-950 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_7-9.jpg\" alt=\"Linux cut Examples: Cut Examples 7-9\" width=\"860\" height=\"299\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_7-9.jpg 860w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_7-9-300x104.jpg 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_7-9-768x267.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-950\" class=\"wp-caption-text\">Cut Examples 7-9<\/figcaption><\/figure>\n<h2>10. Inverting field selection<\/h2>\n<p>The &#8211;complement option can be used with the cut command in order to print the inverted fields declared with the -f option. The below cut command prints all except for the 2nd field from each line using space as a delimiter:<\/p>\n<pre class=\"brush:bash\">&gt;cut --complement -d' ' -f2 example.txt<\/pre>\n<h2>11. Specifying delimiter to be used in output<\/h2>\n<p>The previous cut commands which were used to print fields using a delimiter can be modified to have a different delimiter as output, for example use space as delimiter to find fields but print the fields using comma as a delimiter. The below cut command uses space as a delimiter and prints the second and third fields from each line but the output contains comma separated fields:<\/p>\n<pre class=\"brush:bash\">&gt;cut --output-delimiter=, -d' ' -f2,3 example.txt<\/pre>\n<h2>12. Printing bytes<\/h2>\n<p>Similarly as printing characters using the cut command, you can also print bytes using the -b option. The below cut command prints from first to fourth byte from each line:<\/p>\n<pre class=\"brush:bash\">&gt;cut -b1-4 example.txt<\/pre>\n<p>The below image illustrates the execution of the last 3 cut commands:<\/p>\n<figure id=\"attachment_951\" aria-describedby=\"caption-attachment-951\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_10-12.jpg\" rel=\"attachment wp-att-951\"><img decoding=\"async\" class=\"wp-image-951 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_10-12.jpg\" alt=\"Linux cut Examples: Cut Examples 10-12\" width=\"860\" height=\"307\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_10-12.jpg 860w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_10-12-300x107.jpg 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/03\/cut_examples_10-12-768x274.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><figcaption id=\"caption-attachment-951\" class=\"wp-caption-text\">Cut Examples 10-12<\/figcaption><\/figure>\n<h2>man cut<\/h2>\n<p>We tried to present some basic examples of using the cut command. Of course you may always use the man command to find the full functionality of the linux cut command:<\/p>\n<pre class=\"brush:bash\">&gt;man cut<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we feature comprehensive Linux cut Examples. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file. It is currently part of the GNU coreutils package and the BSD Base System. It first appeared in AT&amp;T System III UNIX in 1982. &hellip;<\/p>\n","protected":false},"author":13,"featured_media":185,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[61],"class_list":["post-921","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux cut Examples - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn more about Linux Cut? Then check out our detailed Linux cut Examples where we will first focus on a few basic examples and then explore all the advanced options that \u2018cut\u2019 provides. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux cut Examples - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more about Linux Cut? Then check out our detailed Linux cut Examples where we will first focus on a few basic examples and then explore all the advanced options that \u2018cut\u2019 provides. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-23T15:11:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-31T13:06:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nassos Hasiotis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nassos Hasiotis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/\"},\"author\":{\"name\":\"Nassos Hasiotis\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/d9f94ea381f1a5d535cec1c751e2461b\"},\"headline\":\"Linux cut Examples\",\"datePublished\":\"2016-03-23T15:11:15+00:00\",\"dateModified\":\"2018-05-31T13:06:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/\"},\"wordCount\":872,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"keywords\":[\"Linux\"],\"articleSection\":[\"BASH\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/\",\"name\":\"Linux cut Examples - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"datePublished\":\"2016-03-23T15:11:15+00:00\",\"dateModified\":\"2018-05-31T13:06:13+00:00\",\"description\":\"Interested to learn more about Linux Cut? Then check out our detailed Linux cut Examples where we will first focus on a few basic examples and then explore all the advanced options that \u2018cut\u2019 provides. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shell Scripting\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"BASH\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Linux cut Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/d9f94ea381f1a5d535cec1c751e2461b\",\"name\":\"Nassos Hasiotis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5150c6873ee61791052d3faf00e804497c2cc4d613d5f6c67e00dc09ee794fdc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5150c6873ee61791052d3faf00e804497c2cc4d613d5f6c67e00dc09ee794fdc?s=96&d=mm&r=g\",\"caption\":\"Nassos Hasiotis\"},\"description\":\"Nassos has graduated from Computer Engineering and Informatics Department in the University of Patras. He also holds a Master degree in Communication and Network Systems from University of Athens. He has a 10-year work experience as a Java and C++ developer in the Telecommunication and IT industry participating in various projects. He currently works as a senior software developer in the IT sector where he is mainly involved with projects for the EU requiring extensive java skills.\",\"sameAs\":[\"http:\/\/www.systemcodegeeks.com\/\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/nassos-hasiotis\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux cut Examples - System Code Geeks - 2026","description":"Interested to learn more about Linux Cut? Then check out our detailed Linux cut Examples where we will first focus on a few basic examples and then explore all the advanced options that \u2018cut\u2019 provides. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/","og_locale":"en_US","og_type":"article","og_title":"Linux cut Examples - System Code Geeks - 2026","og_description":"Interested to learn more about Linux Cut? Then check out our detailed Linux cut Examples where we will first focus on a few basic examples and then explore all the advanced options that \u2018cut\u2019 provides. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file.","og_url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2016-03-23T15:11:15+00:00","article_modified_time":"2018-05-31T13:06:13+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","type":"image\/jpeg"}],"author":"Nassos Hasiotis","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Nassos Hasiotis","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/"},"author":{"name":"Nassos Hasiotis","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/d9f94ea381f1a5d535cec1c751e2461b"},"headline":"Linux cut Examples","datePublished":"2016-03-23T15:11:15+00:00","dateModified":"2018-05-31T13:06:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/"},"wordCount":872,"commentCount":1,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","keywords":["Linux"],"articleSection":["BASH"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/","url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/","name":"Linux cut Examples - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","datePublished":"2016-03-23T15:11:15+00:00","dateModified":"2018-05-31T13:06:13+00:00","description":"Interested to learn more about Linux Cut? Then check out our detailed Linux cut Examples where we will first focus on a few basic examples and then explore all the advanced options that \u2018cut\u2019 provides. Cut is a Unix command line utility which is used to extract sections from each line of input, usually from a file.","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-cut-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Shell Scripting","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/"},{"@type":"ListItem","position":3,"name":"BASH","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/"},{"@type":"ListItem","position":4,"name":"Linux cut Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/d9f94ea381f1a5d535cec1c751e2461b","name":"Nassos Hasiotis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5150c6873ee61791052d3faf00e804497c2cc4d613d5f6c67e00dc09ee794fdc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5150c6873ee61791052d3faf00e804497c2cc4d613d5f6c67e00dc09ee794fdc?s=96&d=mm&r=g","caption":"Nassos Hasiotis"},"description":"Nassos has graduated from Computer Engineering and Informatics Department in the University of Patras. He also holds a Master degree in Communication and Network Systems from University of Athens. He has a 10-year work experience as a Java and C++ developer in the Telecommunication and IT industry participating in various projects. He currently works as a senior software developer in the IT sector where he is mainly involved with projects for the EU requiring extensive java skills.","sameAs":["http:\/\/www.systemcodegeeks.com\/"],"url":"https:\/\/www.systemcodegeeks.com\/author\/nassos-hasiotis\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=921"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/921\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/185"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}