DEV Community

mahir dasare
mahir dasare

Posted on

Text Editor

Text Editor: vi editor, nano, gedit
Commands to read file: more, less
Filters
Horizontal Filters : head,tail,greap
Verticle Filters: cut
Tools for string manipulation :wc , sort,awk, sed,

Text Editor : vi/vim Editor
:w = write changes / save
:q = quite
:wq! = write/save and quite without save(forcefully)
:q! = quite without save(forcefully)

Text Editor : vi/vim Editor
Copy in vi (in command mode)
y! = copy letter
yw = copy a word
yy = copy a line
2yy = copy 2 lines
Y{ = copy paragraphs above the cursor
Y} = copy paragraph below the cursor

Text Editor : vi/vim Editor
Cut in vim ( in command mode)
cl = cut a letter
cw = cut a word
cc = cut a line
2cc = cut 2 line
c{ = cut paragraph above the cursor
c} = cut paragraphbelow the cursor

Text Editor : vi/vim Editor
Delete in vim (in command mode)
d! = delete a letter
dw = delete a word
dd = delete a line
2dd = delete 2 lines
d{ = delete paragraphs above the cursor
d} = delete paragraph below thee cursor

more:
more is a filter for paging through text one screenful at a time.
Ex: more [file_name]

Less:
Less is similar to more except it allows backward movement in the file as well as forward movement.
Ex: less[filter_name]

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay