Andrew Benton wrote:
cat $header | sed -e 's/\( \|(\|,\|\t\)\([us]\)\(8\|16\|32\|64\)/\1__\2\3/g' \
                          -e 's/\( \|(\|,\|\t\)__iomem /\1/g' \
                      -e '/#include <linux.config.h>/d' \
                      -e 's/#ifdef linux/#ifdef __linux__/g' \
                      -e 's/#ifndef linux/#ifndef __linux__/g' \
                         > $header.orig


Yes, but why the need for cat and a pipe?

sed -e ... $header > $header.orig

--
JH
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to