title: Processing of awk with multiple variable from previous processing?
body: <p>I have a Q's for awk processing, i got a file below</p>
  
  <p>cat test.txt</p>
  
  <pre><code>/home/shhh/
  abc.c
  /home/shhh/2/
  def.c
  gthjrjrdj.c
  /kernel/sssh
  sarawtera.c
  wrawrt.h
  wearwaerw.h
  </code></pre>
  
  <p>My goal is to make a full path from splitting sentences into <code>/home/jhyoon/abc.c</code>.</p>
  
  <p>This is the command I got from someone:</p>
  
  <pre><code>cat test.txt | awk '/^\/.*/{path=$0}/^[a-zA-Z]/{printf("%s/%s\n",path,$0);}'
  </code></pre>
  
  <p>It works, but I do not understand well about how do make interpret it step by step.</p>
  
  <p>Could you teach me how do I make interpret it?</p>
  
  <p>Result :</p>
  
  <pre><code>/home/shhh//abc.c
  /home/shhh/2//def.c
  /home/shhh/2//gthjrjrdj.c
  /kernel/sssh/sarawtera.c
  /kernel/sssh/wrawrt.h
  /kernel/sssh/wearwaerw.h
  </code></pre>