
awk:ai:d3723
cut lines with awk
$ awk 'BEGIN{ FS = "|" } { print $1 }' ${filename}
try on your machine
This command uses awk to cut lines based on the delimiter '|' and prints the first field of each line.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- cut lines with awk?