home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,133 of 68,980   
   Zaidy036 to rjobaan@gmail.com   
   Re: Read just first line from file   
   29 Jan 18 17:09:21   
   
   From: Zaidy036@isp.spam   
      
   On 1/29/2018 4:39 AM, rjobaan@gmail.com wrote:   
   > How can a change my first line of a csv file   
   > the first line of my test.csv file looks like   
   >   
   > Country,region,Place   
   > Netherlands,Utrecht,Soest   
   >   
   > And i want to add a underscore into first line only   
   > so files looks like   
   >   
   > _Country,_region_Place   
   > Netherlands,Utrecht,Soest   
   >   
   > how to do that?   
   >   
   did you really want to eliminate the last ","?   
      
   if the line is _first=Netherlands,Utrecht,Soest   
      
   Then use:   
   SET _first=%_first:,=,_%   
   SET _first=_%_first%   
      
   --   
   Zaidy036   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca