2

I am trying to learn all I can about the cat command. I am going to be using it for its light weight performance and its ability to work in nothing but a command line.

I know it can create a text file and read it with quite a few perks but I cant figure out how to edit an already existing one.

There is a similar question to this (What is 'cat' used for?) but it doesn't say were the limits are for the cat command.

If anyone has any advice or know some good sources to learn this stuff from I would greatly appreciate it.

Thank you.

SomeBloke
  • 306

1 Answers1

3

If you want to edit interactively, use for example nano, otherwise you can use the stream editor sed.

You can find several good tutorials via the internet (with examples how to use them). When you have more experience you will find the man pages useful:

man nano

and

man sed

but in the beginning the tutorials are better.

I find several good tutorials with the following search strings

  • nano tutorial

  • sed tutorial

I suggest that you start working with a tutorial that fits what you need.

sudodus
  • 47,684