LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Merging 2 files with awk (https://www.linuxquestions.org/questions/linux-newbie-8/merging-2-files-with-awk-4175496047/)

crazyspice 02-24-2014 12:47 PM

Merging 2 files with awk
 
I would like to merge 2 files into 1.

for file A - i would like print $0 until I see a marker/flag- '~A ' in $1
then insert a part of file B
then from File A print $0 starting from the marker'~A '

** from file A I would like a variable X is $2 where $1 is WELL

I hope someone can help me out.
Thanks

grail 02-24-2014 06:02 PM

Happy to help. What have you done and where are you stuck?


All times are GMT -5. The time now is 09:23 AM.