Skip to content

Instantly share code, notes, and snippets.

@karlarao
Created July 6, 2018 16:01
Show Gist options
  • Save karlarao/e476e33853ce103ddfee0291f5662ba1 to your computer and use it in GitHub Desktop.
Save karlarao/e476e33853ce103ddfee0291f5662ba1 to your computer and use it in GitHub Desktop.
diff of two arrays in bash
ls -ltr | grep planx | awk -F '_' '{print $2}' > planx_out.txt
ls -ltr | grep sqld360 | awk -F '_' '{print $3}' > sqld360_out.txt
cat sqld360_out.txt planx_out.txt | sort | uniq -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment