Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Try vim-way:

$ ex -s +'%!cut -c 1-10' -cxa file.txt 

This will edit the file in-place (so do the backup first).

Alternatively use grepgrep, sedsed or gawkgawk.

Try vim-way:

$ ex -s +'%!cut -c 1-10' -cxa file.txt 

This will edit the file in-place (so do the backup first).

Alternatively use grep, sed or gawk.

Try vim-way:

$ ex -s +'%!cut -c 1-10' -cxa file.txt 

This will edit the file in-place (so do the backup first).

Alternatively use grep, sed or gawk.

added 213 characters in body
Source Link
kenorb
  • 22.1k
  • 18
  • 149
  • 172

Try vim-way:

$ ex -s +'%!cut -c 1-10' -cxa file.txt 

This will edit the file in-place (so do the backup first).

Alternatively use grep, sed or gawk.

Try vim-way:

$ ex -s +'%!cut -c 1-10' -cxa file.txt 

This will edit the file in-place (so do the backup first).

Try vim-way:

$ ex -s +'%!cut -c 1-10' -cxa file.txt 

This will edit the file in-place (so do the backup first).

Alternatively use grep, sed or gawk.

Source Link
kenorb
  • 22.1k
  • 18
  • 149
  • 172

Try vim-way:

$ ex -s +'%!cut -c 1-10' -cxa file.txt 

This will edit the file in-place (so do the backup first).