Top "Cut" questions

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

Bash: How to trim whitespace before using cut

I have a line of output from a command like this: []$ <command> | grep "Memory Limit" Memory Limit: 12345 KB …

bash trim cut
Delete everyting preceding and including a certain substring from variable

In Bash, how can I delete characters from a variable until a certain substring? Example: ananas1kiwi2apple1banana2tree …

bash sed cut
How to always cut the PID from `ps aux` command?

I'd like to get the pid from my processes. I do ps aux | cut -d ' ' -f 2 but I …

grep cut ps
Using ffmpeg to cut audio from/to position

I need to cut parts from an audio file from position to position. When I tried this command ffmpeg -ss 132 …

audio ffmpeg mp3 cut
Unix - Need to cut a file which has multiple blanks as delimiter - awk or cut?

I need to get the records from a text file in Unix. The delimiter is multiple blanks. For example: 2U2133 1239 1290…

unix awk delimiter cut
Cut and labels/breaks length conflict

I am working with the cut function to prep data for a barplot histogram but keep running into a seeming …

r cut
Bash: Parse CSV with quotes, commas and newlines

Say I have the following csv file: id,message,time 123,"Sorry, This message has commas and newlines",2016-03-28T20:26:39 456,"…

bash csv awk cut gawk
Unix cut except last two tokens

I'm trying to parse file names in specific directory. Filenames are of format: token1_token2_token3_token(N-1)_token(N).…

linux bash unix token cut
replacement for cut --output-delimiter

I created a script that was using cut -d',' -f- --output-delimiter=$'\n' to add a newline for each …

bash awk solaris cut
Shell: How to cut a single string with "Cut"?

i'm trying to cut a string into the shell. I'd like to do something like: cut -d' ' -f1 "hello 12345 …

bash shell sh cut io-redirection