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]

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • --last-failed: Zero in on just the tests that failed in your previous run
  • --only-changed: Test only the spec files you've modified in git
  • --repeat-each: Run tests multiple times to catch flaky behavior before it reaches production
  • --forbid-only: Prevent accidental test.only commits from breaking your CI pipeline
  • --ui --headed --workers 1: Debug visually with browser windows and sequential test execution

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Practical examples included!

Watch Video 📹️

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay