Can linux cat command be used for writing text to file?
That's what echo
does:
echo "Some text here." > myfile.txt
Sounds like you're looking for a Here document
cat > outfile.txt <<EOF
>some text
>to save
>EOF
That's what echo
does:
echo "Some text here." > myfile.txt
Sounds like you're looking for a Here document
cat > outfile.txt <<EOF
>some text
>to save
>EOF