Skip to content

Instantly share code, notes, and snippets.

@worthless443
Created January 29, 2023 16:39
Show Gist options
  • Save worthless443/4f520acfb9bb84e34d528d5cdd827a9b to your computer and use it in GitHub Desktop.
Save worthless443/4f520acfb9bb84e34d528d5cdd827a9b to your computer and use it in GitHub Desktop.
find -type f | awk "$(c=0;c_ref=0;for l_x in $(find -type f); do for l_y in $(find -executable -type f); do if [ "$l_x" == "$l_y" ]; then c_ref=$c;else c=$(($c+1));fi;done;c=0;echo $c_ref;done | while read line; do printf "NR!=%d || " $line;done | sed "s/$/NR!=1000/";printf "\n") {print}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment