Page MenuHomeFreeBSD
Authored By
mr.a_lan.ph
May 18 2020, 2:16 AM
Size
510 B
Referenced Files
None
Subscribers
None
Any way to keep the whitespaces or tab stops when I use /usr/bin/ex?
[foo@jumpspeeder ~]$ echo 'passwd: files nis sss' >~/nsswitch.conf
[foo@jumpspeeder ~]$ cat ~/nsswitch.conf
passwd: files nis sss
^
|
|
Look here...
[foo@jumpspeeder ~]$ ex -s -c '%s/^\(passwd:\|shadow:\) \+\(files\) \+nis \+\(sss\)/\1 \2 \3/' -c w -c q ~/nsswitch.conf
[foo@jumpspeeder ~]$ cat ~/nsswitch.conf
passwd: files sss
^
|
|
...here too.
Thanks in advance.

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578793
Default Alt Text
raw.txt (510 B)

Event Timeline