I would like to substitute characters in even columns with a different char, like this (with space):
In:
hello
Out:
h l o
How can I do this?
|
I would like to substitute characters in even columns with a different char, like this (with space): In:
Out:
How can I do this?
| ||||
|
feedback
|
EDIT: I noticed the slashes is hidden unless I used code style. Fixed. | ||||
|
feedback
|
|
This will do it:
awk processes each line in turn, the for loop processes every other character and prints it followed by a space | |||
|
feedback
|