In some of my recent articles on text processing, I have explained the use of
sedcommand in Linux/Unix. In case ofsedcommand, we provide an input file to the command, it reads the file line-by-line, processes each line and then prints it on theSTDOUT. So, in brief, its a row-wise operation. Similar is the case withcutcommand – there is an input file, there is processing part and the processed output can be displayed onSTDOUTor saved in a file. A minor difference betweensedandcutis that,cutcommand processes the file in vertical manner. So, the outcome of thecutcommand is a single or multiple columns.
Source: Cut Command in Linux – Extract Fields and Columns from a file ~ Your Own Linux..!

Recent Comments