I've read this thread https://unix.stackexchange.com/a/7718/256195, that only if var
doesn't contain any tab/spaces but in my case it does contain spaces, like below example:
"this is a test" this_is_a_solid_line_that_doesnot_contain_tab_or_spaces
command column
will separate this
is
..etc also, but I'd want something acts on only "this is a test"
and this_is_a_solid_line_that_doesnot_contain_tab_or_spaces
.
Purpose: I have a bunch of lines like above in a file that don't be aligned properly.
cat file | somethine_here_to_filter
, what would your script will be put after a pipeline? – Tuyen Pham Nov 29 '18 at 08:00./script.sh file
. To make it work on a pipe, usesomething-that-produces-data | ./script.sh /dev/stdin
. – Kusalananda Nov 29 '18 at 08:05var1 test
it produces"var1.................................................................test"
that somehow treat spaces as tab. – Tuyen Pham Nov 29 '18 at 08:32