DEV   158498

« earlier    

remove consecutive duplicate rows | Unix Linux Forums | Shell Programming and Scripting
Make all lines uniq (make duplicate consecutive line appear only once):

Code:
awk '{sub(".*"$2,$2)}1' yourfile | uniq
cli  commands  dev  discussions  grep  issues  scripting  awk  text_manipulation  tidbits  utilities 
yesterday by skinnymuch
shell - How can I delete duplicate lines in a file in Unix? - Stack Overflow
Issue with Ruby pry history duplicating. Been having this issue for so long. Pretty sure on macOS and Linux Ubuntu 14 VM. Both.
%stack_overflow  bookmarked_on_site  cli  commands  dev  grep  issues  scripting  sed  text_manipulation  utilities  tidbits 
yesterday by skinnymuch

« earlier    

related tags

%stack_overflow  archive  artres  authentication  awk  bookmarked_on_site  cli  commands  dev  devops  discussions  favorites  grep  hardware&software  history_of_internets  ios  issues  javascript  materials  nap  node  ops  package  rsrcs  rtnl.work  scripting  sed  text_manipulation  tidbits  tools  tvos  utilities  web 

Copy this bookmark:



description:


tags: