I want to create a simple file....with the command

Example:

touch file.txt

ok its created *BUT*

****I want to edit this file in shell and save it, writing EOF to finish.

Any suggestions? How i do that? Thanks!

Hello aFg3!

I'm not exactly sure what you're asking... Are you looking for a command line text editor, or are you looking for something along the lines of cat > file.txt ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.