Skip to content

Instantly share code, notes, and snippets.

@alpody
Created May 27, 2021 19:45
Show Gist options
  • Save alpody/b35c3b8dc6893670a5a83fbe8385fecb to your computer and use it in GitHub Desktop.
Save alpody/b35c3b8dc6893670a5a83fbe8385fecb to your computer and use it in GitHub Desktop.
get list fil in ./jobs/1/income/ and check it occurance in ./jobs/1/data.html file
find ./jobs/1/docs/income -type f -print | while read filename ; do a=$(echo $filename | sed 's@./jobs/1/docs/income/@@'); grep $a ./jobs/1/data.html ; done | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment