Top "Cut" questions

A Unix shell command that breaks input into fields, which can be selected for output, based on a delimiter.

How to strip out all of the links of an HTML file in Bash or grep or batch and store them in a text file

I have a file that is HTML, and it has about 150 anchor tags. I need only the links from these …

bash shell awk grep cut
Parsing the first column of a csv file to a new file

Operating System: OSX Method: From the command line, so using sed, cut, gawk, although preferably no installing modules. Essentially I …

bash csv sed awk cut
How to use cut with multiple character delimiter? unix

My file looks like this abc ||| xyz ||| foo bar hello world ||| spam ham jam ||| blah blah I want to extract …

sed delimiter cut
How to cut multiple columns from several files and print the output to different files

I have several files and I only want to take specific columns from it. At the moment, I am using …

linux shell unix cut
Get free disk space with df to just display free space in kb?

I'm trying to output the amount of free disk space on the filesystem /example. If I run the command df …

linux bash unix cut linux-df
Extract The Second Word In A Line From A Text File

I am currently in need to extract the second word (CRISTOBAL) in a line in a text file. * CRISTOBAL AL042014 08/05/14 12 …

bash unix awk sed cut
Python Cut Example

I'm looking for a way in python to achieve similar functionality to the unix cut utility. I know I can …

python cut
How do you parse a filename in bash?

I have a filename in a format like: system-source-yyyymmdd.dat I'd like to be able to parse out the different …

bash shell parsing tokenize cut
Windows command for cutting columns from a text

The following content is stored in a file: chrome.exe 512 Console 0 73,780 K chrome.exe 800 Console 0 11,052 K chrome.exe 1488 Console 0 92,720 K …

windows command-line data-manipulation cut
How do you pipe input through grep to another utility?

I am using 'tail -f' to follow a log file as it's updated; next I pipe the output of that …

bash cygwin grep pipe cut