💾 Archived View for freeshell.de › tldr › cut.gmi captured on 2024-05-10 at 11:53:51. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
cut
Cut out fields from stdin or files.
More information.
- Cut out the first sixteen characters of each line of stdin:
cut -c {1-16}
- Cut out the first sixteen characters of each line of the given files:
cut -c {1-16} {file}
- Cut out everything from the 3rd character to the end of each line:
cut -c {3-}
- Cut out the fifth field of each line, using a colon as a field delimiter (default delimiter is tab):
cut -d'{:}' -f{5}
- Cut out the 2nd and 10th fields of each line, using a semicolon as a delimiter:
cut -d'{;}' -f{2,10}
- Cut out the fields 3 through to the end of each line, using a space as a delimiter:
cut -d'{ }' -f{3-}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY