Hello,
Another silly question probably, but here goes.
Suppose I have a text file that looks like this:
;
42
;
33
;
437
;
16029
;
33
;
73
;
20
;
267
;
11029
;
45
and I want it to look like this:
;42;33;437;16029;33
;73;20;167;11029;45
how would I do that?
If I do cat file | tr -d '\n' it gives it all on one line.
There is a \n after every ; and number, with an additional \n between the sets. Any ideas?
Another silly question probably, but here goes.
Suppose I have a text file that looks like this:
;
42
;
33
;
437
;
16029
;
33
;
73
;
20
;
267
;
11029
;
45
and I want it to look like this:
;42;33;437;16029;33
;73;20;167;11029;45
how would I do that?
If I do cat file | tr -d '\n' it gives it all on one line.
There is a \n after every ; and number, with an additional \n between the sets. Any ideas?