Boa tarde pessoal. Após assistir à aula sobre o comando cut
tentei repetir a tarefa do vídeo no meu mac.
A opção --output-delimiter
não existe para o cut do bash do macOS. Teria alguma alternativa para essa flag?
No man
do cut
existem apenas as opções abaixo:
-b list
The list specifies byte positions.
-c list
The list specifies character positions.
-d delim
Use delim as the field delimiter character instead of the tab character.
-f list
The list specifies fields, separated in the input by the field delimiter character (see the -d option). Output fields are separated by a single occurrence of
the field delimiter character.
-n Do not split multi-byte characters. Characters will only be output if at least one byte is selected, and, after a prefix of zero or more unselected bytes, the
rest of the bytes that form the character are selected.
-s Suppress lines with no field delimiter characters. Unless specified, lines with no delimiters are passed through unmodified.
-w Use whitespace (spaces and tabs) as the delimiter. Consecutive spaces and tabs count as one single field separator.
Acredito que nessa versão do cut
não tenha como pedir um delimitador no output, correto?
Obrigado.