Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 311 Bytes

cut.md

File metadata and controls

12 lines (12 loc) · 311 Bytes

How to get a string between double quotation marks

# -d is a delimiter.
# -f is to extract a second field.
# -s is to skip lines that do not have the delimiter.
cut -d '"' -f2 -s input.txt

How to exclude a specific column

# -f is to extract a field.
cut -f2 --complement input.txt