Skip to content

Instantly share code, notes, and snippets.

@carld
Created March 19, 2017 04:38
Show Gist options
  • Select an option

  • Save carld/c26b301e9c94c852e0245521a767c4f5 to your computer and use it in GitHub Desktop.

Select an option

Save carld/c26b301e9c94c852e0245521a767c4f5 to your computer and use it in GitHub Desktop.
Find files that have greater than 3000 lines
wc -l data/* | awk '{if ($1 > 3000) print $1, $2}'
@carld
Copy link
Author

carld commented Mar 19, 2017

and to concatenate rows onto a single comma separated line...

wc -l * | awk '{if ($1 > 3000) print $2}' | paste -s -d "," -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment