• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

UNIX Changing field separators?

Mashed Potato

Senior member
A file was made using ! as the field separator, what command would I use to change it? i tried sort -t : "filename" but that did nothing. I also tried awk -F : '{print $1, $3} "filename" and i get an error which says syntax error near line one, bailing out near line one.

-Thanks in advance

Mashed Potato
 
I donno.

How about:

cat filename | tr \! \,

For changing it to comma deliminated.

or maybe
cat filename| awk '{FS="!"} {print $2","$3}'

If you only want certain values.
 
Back
Top