Skip to main content
deleted 2 characters in body
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167

You can use Vim in Ex modethe POSIX tool ex:

ex -s -c '1i|task goes here' -c x todo.txt
ex a.txt <<eof
1 insert
Sunday
.
xit
eof
  1. 1 select first line

  2. i insert

  3. x save and close

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html

You can use Vim in Ex mode:

ex -s -c '1i|task goes here' -c x todo.txt
  1. 1 select first line

  2. i insert

  3. x save and close

You can use the POSIX tool ex:

ex a.txt <<eof
1 insert
Sunday
.
xit
eof

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html

added 3 characters in body
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167

You can use Vim in Ex mode:

ex -scs -c '1i|task goes here' -cxc x todo.txt
  1. 1 select first line

  2. i insert

  3. x save and close

You can use Vim in Ex mode:

ex -sc '1i|task goes here' -cx todo.txt
  1. 1 select first line

  2. i insert

  3. x save and close

You can use Vim in Ex mode:

ex -s -c '1i|task goes here' -c x todo.txt
  1. 1 select first line

  2. i insert

  3. x save and close

deleted 3 characters in body
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167

You can use Vim in Ex mode:

ex -s -csc '1i|task goes here' -c xcx alfatodo.txt
  1. 1 select first line

  2. i insert

  3. x save and close

You can use Vim in Ex mode:

ex -s -c '1i|task goes here' -c x alfa.txt
  1. 1 select first line

  2. i insert

  3. x save and close

You can use Vim in Ex mode:

ex -sc '1i|task goes here' -cx todo.txt
  1. 1 select first line

  2. i insert

  3. x save and close

added 7 characters in body
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167
Loading
deleted 14 characters in body
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167
Loading
added 1 character in body
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167
Loading
deleted 2 characters in body
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167
Loading
Source Link
Zombo
  • 1
  • 26
  • 128
  • 167
Loading