Just write:
Code: Select all
cat >myfile <<_END
For example:
Code: Select all
# cat >myfile <<_END
> bla
> meh
> _END
# cat myfile
bla
meh
#
Code: Select all
cat >myfile <<_END
Code: Select all
# cat >myfile <<_END
> bla
> meh
> _END
# cat myfile
bla
meh
#
Code: Select all
cat > myfile
They're a tool... you can do what you want with them.laika wrote: here files have some specific application, don't they?
Code: Select all
grep 'bla' file | while read Line ; do
#do something
done
Code: Select all
while read Line ; do
#do something
done<<_END
$(grep 'bla' filename)
_END