With grep, you have a --null-data option
-z, --null-data a data line ends in 0 byte, not newline
In this way a line is a string ending with a null character, instead of a newline. Does awk have a similar option?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set
RS(the record separator) to change howawkviews lines. This would be set in a similar manner to the field separatorFS. Depending on the version ofawkyou are using you may be able to set this to NULL.For example,
Note that this may not be portable if you are not using the GNU awk implementation.