Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F6523408
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
mr.a_lan.ph
May 18 2020, 2:16 AM
2020-05-18 02:16:43 (UTC+0)
Size
510 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
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
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578793
Default Alt Text
raw.txt (510 B)
Attached To
Mode
P388 String manipulation
Attached
Detach File
Event Timeline
Log In to Comment