• Home
  • ANGULAR
  • JAVASCRIPT
  • ABOUT ME

Alex Arriaga

  • Home
  • ANGULAR
  • JAVASCRIPT
  • ABOUT ME
© 2025 Alex Arriaga

GNU/Linux

GNU/Linux Mac OSX Operating Systems

How to find blank lines in a set of files in GNU/Linux or UNIX-Like Operating Systems

Posted on July 10, 2013by alex-arriaga

This short script could help you find blank lines at the beginning or the end of a set of files (in this case in the same directory where you run this script). for f in `find . -type f`; do for t in head tail; do $t -1 $f |egrep ‘^[ ]*$’ >/dev/null && echo…

Posts navigation

1 2 3