<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: awk? script wanted to strip data from record in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010777#M99166</link>
    <description>Hi James:&lt;BR /&gt;&lt;BR /&gt;# awk -F"," '{if ($1~/^RACT0010/) {$12=""};print}' file &amp;gt; file.out&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 26 Oct 2006 14:42:47 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-10-26T14:42:47Z</dc:date>
    <item>
      <title>awk? script wanted to strip data from record</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010776#M99165</link>
      <description>I have a comma-delimited file with multiple record types.  I need to null-out the 12th field of any records whose first field has the value "RACT0010".  The output should be written to a new file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm thinking this is something awk could handle in a couple of lines, but I don't have time to mess with it.  &lt;BR /&gt;Any help would be appreciated...&lt;BR /&gt;&lt;BR /&gt;RFIN0011,PFEE,DEP,TD,145376,282410,30774698,USD,22792601,AX,,"Conveyed Dep. Fee",S,2,0.0200,35.00,0,-0.04&lt;BR /&gt;HACT0010,144509,10/25/2006,10/25/2006,10/26/2006,04:43:57&lt;BR /&gt;RACT0010,10/25/2006,184218,"sonyon","61025.0006b",2,TD,145376,USD,"147dad12c",,4444444444444444,08/07,5.00,MC,D,10/23/2006,681559,100,,,,5945&lt;BR /&gt;RACT0010,10/25/2006,184218,"sonyon","61025.0006b",3,TD,145376,USD,"147dad132",,4444444444444444,09/10,25.00,AX,D,10/23/2006,180392,100,,,,5945&lt;BR /&gt;RACT0010,10/25/2006,184218,"sonyon","61025.0006b",4,TD,145376,USD,"12a0e5698",,4444444444444444,08/07,-10.00,MC,R,,,,,,,5945&lt;BR /&gt;RACT0010,10/25/2006,184218,"sonyon","61025.097Eb",2,TD,145376,USD,"165a8362c",,4444444444444444,09/10,10.00,AX,D,10/24/2006,164110,100,,,,5945&lt;BR /&gt;RACT0010,10/25/2006,184218,"sonyon","61025.097Eb",3,TD,145376,USD,"165a83624",,4444444444444444,08/08,25.00,VI,D,10/24/2006,03693A,100,,,,5945&lt;BR /&gt;*DFREND,PID=945479,FREQ=DAILY,CO=144509&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2006 14:28:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010776#M99165</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2006-10-26T14:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: awk? script wanted to strip data from record</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010777#M99166</link>
      <description>Hi James:&lt;BR /&gt;&lt;BR /&gt;# awk -F"," '{if ($1~/^RACT0010/) {$12=""};print}' file &amp;gt; file.out&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 26 Oct 2006 14:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010777#M99166</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-26T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: awk? script wanted to strip data from record</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010778#M99167</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response.  Your solution is close, but it stripped out the commas from the record, which I need for the final output.&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;&lt;BR /&gt;RFIN0011,PFEE,DEP,TD,145376,282410,30774698,USD,22792601,AX,,"Conveyed Dep. Fee",S,2,0.0200,35.00,0,-0.04&lt;BR /&gt;HACT0010,144509,10/25/2006,10/25/2006,10/26/2006,04:43:57&lt;BR /&gt;RACT0010 10/25/2006 184218 "sonyon" "61025.0006b" 2 TD 145376 USD "147dad12c"   08/07 5.00 MC D 10/23/2006 681559 100    5945&lt;BR /&gt;RACT0010 10/25/2006 184218 "sonyon" "61025.0006b" 3 TD 145376 USD "147dad132"   09/10 25.00 AX D 10/23/2006 180392 100    5945&lt;BR /&gt;RACT0010 10/25/2006 184218 "sonyon" "61025.0006b" 4 TD 145376 USD "12a0e5698"   08/07 -10.00 MC R       5945&lt;BR /&gt;RACT0010 10/25/2006 184218 "sonyon" "61025.097Eb" 2 TD 145376 USD "165a8362c"   09/10 10.00 AX D 10/24/2006 164110 100    5945&lt;BR /&gt;RACT0010 10/25/2006 184218 "sonyon" "61025.097Eb" 3 TD 145376 USD "165a83624"   08/08 25.00 VI D 10/24/2006 03693A 100    5945&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2006 14:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010778#M99167</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2006-10-26T14:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: awk? script wanted to strip data from record</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010779#M99168</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;awk -F"," '{if ($1~/^RACT0010/) $12=""; print $1","$2","$3","$4","$5","$6","$7","$8","$9","$10","$11","$12","$13","$14","$15","$16","$17","$18","$19","$20","$21","$22","$23}' &amp;lt; file_in &amp;gt; file_out&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Thu, 26 Oct 2006 14:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010779#M99168</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-26T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: awk? script wanted to strip data from record</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010780#M99169</link>
      <description>Hi (again) James:&lt;BR /&gt;&lt;BR /&gt;How about(?):&lt;BR /&gt;&lt;BR /&gt;# awk -F"," 'BEGIN{OFS=","};{if ($1~/^RACT0010/) {$2=""};print}' file &amp;gt; file.new&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 26 Oct 2006 14:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010780#M99169</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-26T14:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: awk? script wanted to strip data from record</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010781#M99170</link>
      <description>Works! thanks...</description>
      <pubDate>Thu, 26 Oct 2006 14:57:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-script-wanted-to-strip-data-from-record/m-p/5010781#M99170</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2006-10-26T14:57:50Z</dc:date>
    </item>
  </channel>
</rss>

