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,826 of 68,980   
   John Stockton to John Stockton   
   Re: Problem with file copying in Batch   
   07 Nov 21 07:51:37   
   
   From: dr.j.r.stockton@gmail.com   
      
   On Sunday, 7 November 2021 at 11:52:14 UTC, John Stockton wrote:   
   > On Saturday, 6 November 2021 at 12:46:34 UTC, JJ wrote:   
   > > On Thu, 4 Nov 2021 15:30:11 -0700 (PDT), John Stockton wrote:   
      
   > In the meanwhile, I'll try long runs of the script only when I have another   
   use for the hand which is not busy typing F, e.g. by eating sandwiches with it.   
      
   Sometimes, unexpectedly simple solutions exist :   
      
   prompt>type FFF.TXT | ZZZ-PICK camel barnes camel   
      
   in which FFF.TXT is a readily-constructed file of thousands of lines each   
   containing a single letter F (finishing with a line not starting with F, and   
   not using D).   
      
      
      
   But I have a further problem.  I use MiniTrue to select the desired lines from   
   the main text,   
   with -o meaning 'send the matching lines to Standard Output' -   
   pseudocode:    MINITRUE -o XXX.HTM targets > ZZZ\ZZZZ.TXT   
   and it appears that, in a Windows 10 MS-DOS window and in Windows 10 Windows   
   Terminal,   
   the redirection operation in this case fails to preserve the order of what it   
   transmits   
   (here, that would be regrettable but not disastrous).   
   Perhaps MiniTrue needs an update.  But possibly I can copy the original input   
   file to ZZZ\ZZZZ.TXT   
   and then use -   
   pseudocode:    MINITRUE  ZZZ\ZZZZ.TXT lines-without-targets = ""   ??   
      
   N.B. MiniTrue treats the 'targets' and a row of RegExps, so I can search for   
   'cow' without finding 'Moscow'.   
      
   The question is : what might I use instead of MiniTrue : AWK / GREP / SED   
   /Another ?- I ask to be guided to read about the best one first - and where to   
   get it from.   
      
   Briefly, I need to remove the lines I don't want from a file   
      
   --   
   (c) John Stockton, near London, UK. Using Google Groups. |   
   Mail: J.R.""""""""@physics.org - or as Reply-To, if any. |   
      
   --- 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