I want to Append Data in Unix

@Vivek_Patil
Please use markdown code tags as required by the forum rules.
I've edited your post for now, but do follow the rules going forward.

As for the "Command" and what's wrong with it... I can see many things wrong with it. Have you tried running it yourself?

When I tried it, I get the following:

$ awk -F '[ ~ ] [\\^] '  ' {While (NF<3)  {getline p; $0 =$0  ''  '' p};print}' < vivek.txt
awk: cmd. line:1:  {While (NF<3)  {getline p; $0 =$0     p};print}
awk: cmd. line:1:                 ^ syntax error

Also, what would be the desired output based on your input?
A more representative data input would be helpful as well...
We can only guess what you're after...

2 Likes