Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to type ^A in unix shell script/VI

Tags:

shell

vi

unix

I am new to unix and writing script to extract data in delimited file format.

want to use ^A as delimiter , can you please suggest how to type/insert it

like image 788
Nishad Avatar asked Dec 14 '22 17:12

Nishad


1 Answers

Type Ctrl + V, then Ctrl + A.

According to your system configuration, you may need to type other key sequence. Check the output of stty -a, especially lnext:

$ stty -a | grep lnext
lnext = ^V; flush = ^O; min = 1; time = 0;
^^^^^^^^^^
like image 85
falsetru Avatar answered Jan 03 '23 19:01

falsetru