Can Linux Cat Command Be Used For Writing Text To File?


Answer :

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 

Here's another way -

cat > outfile.txt >Enter text >to save press ctrl-d 

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable