I want to do this with 1 line of code :
Create a text file where 3 sentences underneath eachother are placed. I know the command to create an empty textfile it is "cat > sample.txt" but i want to create this file with these 3 sentences in it in one line of code. Like this :
sentence1
sentence2
sentence3
echo -e "sentence1 \nsentence2 \nsentence3" >> sample.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With