-f list
The list specifies fields, separated in the input by the field
delimiter character (see the -d option). Output fields are [b]sepaâ€
rated by a single occurrence of the field delimiter character[/b].
It would appear in practice that cut(1) leaves the delimiter in the output. The example from the manpage ([cmd=c:\>] cut -d : -f 1,7 /etc/passwd[/cmd] leaves the ":"). As to what you should use, I don't know. sed(1)?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.