I have a file which contains data like this:
1;2;3
4;5;6
7;8;9
....
n
where n is a random numer of lines. I'm trying to get from this file something like this:
command_1_command_2_command_3
command_4_command_5_command_6
....
n
Any suggestions how can I achieve this?
awk. Give it a try, and post what you have if you can't get it working.sed. Replace the beginning of the line withcommand_, and replace;with_command_.