title: multiple field separator single quotes ' ' and double quotes " " in awk
body: <p>I had asked before for printing the texts inside of two consecutive " ". for example I have the following strings:</p>
  
  <pre><code>gfdg "jkfgh" "jkfd fdgj fd-" ghjhgj
  gfggf "kfdjfdgfhbg" "fhfghg" jhgj
  jhfjhg "dfgdf" fgf
  fgfdg "dfj jfdg jhfgjd" "hfgdh jfdhgd jkfghfd" hgjghj
  </code></pre>
  
  <p>And I want to print only the following:</p>
  
  <pre><code>"jkfgh" "jkfd fdgj fd-"
  "kfdjfdgfhbg" "fhfghg"
  "dfgdf"
  "dfj jfdg jhfgjd" "hfgdh jfdhgd jkfghfd"
  </code></pre>
  
  <p>I got the answer of using this command:</p>
  
  <pre><code>awk -F'"' '{for (i=2;i&lt;5;i+=2) printf "%s%s%s%s", FS, $i, FS, (i&gt;5-2?"\n":" ")}' sample.txt
  </code></pre>
  
  <p>now I have to add <code>' '</code> to my question. i.e. my text can be inside of <code>' '</code> as well as <code>" "</code>. the example below:</p>
  
  <pre><code>gfdg "jkfgh" "jkfd fdgj fd-" ghjhgj
  gfggf "kfdjfdgfhbg" "fhfghg" jhgj
  jhfjhg "dfgdf 'ffdg' gfd" "dgffd 'fdg'"fgf
  fgfdg 'dfj "jfdg" jhfgjd' 'hfgdh jfdhgd jkfghfd' hgjghj
  </code></pre>
  
  <p>i would like to get the following result:</p>
  
  <pre><code>"jkfgh" "jkfd fdgj fd-"
  "kfdjfdgfhbg" "fhfghg"
  "dfgdf 'ffdg' gfd" "dgffd 'fdg'"
  'dfj "jfdg" jhfgjd' 'hfgdh jfdhgd jkfghfd'
  </code></pre>
  
  <p>can someone please help me?</p>