Skip to content

Instantly share code, notes, and snippets.

@slpsys
Created May 6, 2011 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slpsys/959345 to your computer and use it in GitHub Desktop.
Save slpsys/959345 to your computer and use it in GitHub Desktop.
len_a=`head -n 4 a | wc | awk '{print $3}'` && len_b=`head -n 4 b | wc | awk '{print $3}'`; cmp a b -n `[ $len_a -gt $len_b ] && echo $len_a || echo $len_b`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment