The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 91,936β€…    Votes:  5β€…
Tag : ubuntu-touch  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/896957
Title: writing a text file in the terminal with touch
ID: /2017/03/26/writing-a-text-file-in-the-terminal-with-touch
Created: March 26, 2017
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


If I understand your question correctly you want to use:

echo "hello" > ~/Desktop/new_file.txt && echo "world" >> ~/Desktop/new_file.txt

Then to check the results use cat ~/Desktop/new_file.txt which shows:

hello
world

There’s a shorter way of doing this but I’m kind of new to Linux myself.

⇧ Bash script to convert from HTML entities to characters How to make zenity "transient parent" warning disappear permanently  β‡©