i just wanted to ask something here. if i have a file very similar to the given above
one two 3748901 90 NULL 0 3892031 three four five
six seven eight nine ten
and i want the output in the way as u said earlier. (given below)
one:two:three:four:five
will this one command will work ???
sed 's/\s\+/:/g' < file
If yes. then my 2nd question..
my file has like 2000 records and each record is given like :-
one two 3748901 90 NULL 0 3892031 three four five
six seven eight nine ten one two 3748901 90 NULL 0 3892031 three four five
six seven eight nine ten one two 3748901 90 NULL 0 3892031 three four five
six seven eight nine ten
first record starts from (a random number like 3748901) how will get the desired output in the way like :-
what i am trying to say is there is anther data in my file in each record that is exactly similar to the first record. the only difference between the first record and the between lying data is that.
my 1st record starts with integer value 9 and other one is always something else.