Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 17 Oct 2017, 20:26
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
write texts in terminal with cat
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 965
Location: Canada

PostPosted: Mon 20 Mar 2017, 15:39    Post subject:  write texts in terminal with cat  

One way to write a short text in terminal, instead of using a proper text editor, such as Libre Office or Abiword, is :

$ or #cat> filename.txt
enter
write your text
then close it with :
ctrl + D
It will be saved in directory where you opened a terminal window.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2593

PostPosted: Tue 21 Mar 2017, 14:13    Post subject:  

You can also use 'echo' and with either echo or cat use shell redirection to append to a file. With newer bash you can even insert text at a certain point using 'read' (IIRC).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0413s ][ Queries: 14 (0.0032s) ][ GZIP on ]