Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

or use:

    find "$1" -type f \( ! -regex '.*/\..*' \) -print | while IFS= read -r file
    do
      echo "$file"
      echo "---"
      cat "$file"
      echo "---"
    done


I use `find -name '*.py' | xargs tail -n +0 | sed 's/ / /g' | pbcopy` a lot for this! Easy to remember.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: