2010-08-19

cat << EOF

Here is an option for writing several line of text to a file via a the shell.


~ # cat > test << EOF
> this is first line
> this is the second line
> EOF
~ # cat test
this is first line
this is the second line
~ #

No comments:

Post a Comment