Date: Mon, 13 Feb 2006 09:49:22 +0100 From: Kristian Vaaf <vaaf@broadpark.no> To: questions@freebsd.org Subject: How to ensure one blank line on top of ASCII files? Message-ID: <7.0.1.0.2.20060213094752.021a8eb0@broadpark.no>
next in thread | raw e-mail | index | archive | help
Hello! I need to make sure all my ASCII files start with one blank line. I just need to know what command to use, I've written the rest of the script to do this for me: -- for file in `find -s . -type f -not -name ".*"`; do if file -b "$file" | grep -q 'text'; then What to put here? :) echo "$file: Done" fi done -- Thanks! :) Vaaf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7.0.1.0.2.20060213094752.021a8eb0>