text: user4595: I have this data all is one line even gene from first sample joined the second one while I want this data column wise each field separated like I have provided 
  #Uploaded variation   #Uploaded_variation 1 883477 G T 1_883477_G/TPRDM16 1 3125744 A G 1_3125744_A/GPRDM16
  
  But I want
           V1     V2  V3      V4  V5  V6
  1_883477_G/T    1   883477  G   T   PRDM16
  1_3125744_A/G   1   3125744 A   G   PRDM16
  
  
  user3541: I am really curious what software or piece of code gave you this one-line data. I would think twice before using a tool giving such output. Anyway, I think regular expressions is the way to go in this case (this solution uses R):
  library(stringr)
  
  text <- "#Uploaded variation   #Uploaded_variation 1 883477 G T 1_883477_G/TPRDM16 1 3125744 A G 1_3125744_A/GPRDM16"
  
  my_pattern <- "[0-9]+\\s[0-9]+\\s[ATGC]+\\s[ATGC]+\\s[0-9]+_[0-9]+_[ATGC]+\\/[0-9A-Z]+"
  
  info_as_list <- str_extract_all(text,
                                  pattern = my_pattern) %>% unlist()
  
  info_as_list <- sub("/",
                      " ",
                      info_as_list)
  
  info_as_list <- str_split(info_as_list, " ")
  
  as.data.frame(Reduce(rbind, info_as_list))
  
  This is the output, I guess the rowname "init" comes from Reduce():
       V1      V2 V3 V4          V5      V6
  init  1  883477  G  T  1_883477_G TPRDM16
        1 3125744  A  G 1_3125744_A GPRDM16
  
  Here is what the regular expression does, you might need to alter this based on your data:
  [0-9]+\\s       :   start position
  [0-9]+\\s       :   end position
  [ATGC]+\\s      :   ref nucleotide(s)
  [ATGC]+\\s      :   alternate nucleotide(s)
  [0-9]+          :   start
  _               :   underscore
  [0-9]+          :   end
  _               :   underscore
  [ATGC]+         :   ref
  \\/             :   slash
  [0-9A-Z]+       :   gene symbol
  
  + means one or more of the preceding and R uses two backslashes, \\, as escape characters.
  
original_text: 4595: <p>I have this data all is one line even gene from first sample joined the second one while I want this data column wise each field separated like I have provided </p>
  
  <pre><code>#Uploaded variation   #Uploaded_variation 1 883477 G T 1_883477_G/TPRDM16 1 3125744 A G 1_3125744_A/GPRDM16
  </code></pre>
  
  <p>But I want</p>
  
  <pre><code>         V1     V2  V3      V4  V5  V6
  1_883477_G/T    1   883477  G   T   PRDM16
  1_3125744_A/G   1   3125744 A   G   PRDM16
  </code></pre>
   3541: <p>I am really curious what software or piece of code gave you this one-line data. I would think twice before using a tool giving such output. Anyway, I think regular expressions is the way to go in this case (this solution uses <code>R</code>):</p>
  
  <pre><code>library(stringr)
  
  text &lt;- "#Uploaded variation   #Uploaded_variation 1 883477 G T 1_883477_G/TPRDM16 1 3125744 A G 1_3125744_A/GPRDM16"
  
  my_pattern &lt;- "[0-9]+\\s[0-9]+\\s[ATGC]+\\s[ATGC]+\\s[0-9]+_[0-9]+_[ATGC]+\\/[0-9A-Z]+"
  
  info_as_list &lt;- str_extract_all(text,
                                  pattern = my_pattern) %&gt;% unlist()
  
  info_as_list &lt;- sub("/",
                      " ",
                      info_as_list)
  
  info_as_list &lt;- str_split(info_as_list, " ")
  
  as.data.frame(Reduce(rbind, info_as_list))
  </code></pre>
  
  <p>This is the output, I guess the rowname "init" comes from <code>Reduce()</code>:</p>
  
  <pre><code>     V1      V2 V3 V4          V5      V6
  init  1  883477  G  T  1_883477_G TPRDM16
        1 3125744  A  G 1_3125744_A GPRDM16
  </code></pre>
  
  <p>Here is what the regular expression does, you might need to alter this based on your data:</p>
  
  <pre><code>[0-9]+\\s       :   start position
  [0-9]+\\s       :   end position
  [ATGC]+\\s      :   ref nucleotide(s)
  [ATGC]+\\s      :   alternate nucleotide(s)
  [0-9]+          :   start
  _               :   underscore
  [0-9]+          :   end
  _               :   underscore
  [ATGC]+         :   ref
  \\/             :   slash
  [0-9A-Z]+       :   gene symbol
  </code></pre>
  
  <p><code>+</code> means one or more of the preceding and <code>R</code> uses two backslashes, <code>\\</code>, as escape characters.</p>
  