Public Notes by chase_ats Tagged #awk

Notes publicly shared by our members.
Make all lines uniq (make duplicate consecutive line appear only once): Code: awk '{sub(".*"$2,$2)}1' yourfile | uniq #grep #cli #commands #dev #scripting #utilities #text_manipulation #tidbits #discussions #issues #awk #pub