Public Notes
on
histre
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)
sed.sourceforge.net
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)
#grep #sed #cli #commands #dev #scripting #utilities #text_manipulation #issues #tidbits #pub
Show More
Issue with Ruby pry history duplicating. Been having this issue for so long. Pretty sure on macOS and Linux Ubuntu 14 VM. Both.
#grep #sed #cli #commands #dev #scripting #utilities #text_manipulation #bookmarked_on_site #%stack_overflow #issues #tidbits #pub
Show More
remove consecutive duplicate rows | Unix Linux Forums | Shell Programming and Scripting
www.unix.com
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
Show More
Collect and share the web
Get started for free