probably the most useless of all command combinations… but for whatever reason… like you don’t have an editor that can only write but not read files:

it will just keep overwriting the file…

[cc lang=”bash” escaped=”true” width=”600″]

cat << EOF > editor_for_poor.txt; # starts cat in interactive mode, creates a file and writes to that file
> this was written
> with a very cheap editor
> EOF

[/cc]

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin