delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/18/17:24:21

From: vivlavie AT plaza1 DOT snu DOT ac DOT kr (Sung Hoon, Kim 1h<:HF)
Subject: B18: "sed ** >> a_file", paging error in kernel32.dll in window 95 Korean Version
18 Aug 1998 17:24:21 -0700 :
Message-ID: <000101bdc9d6$590c3b00$ee832e93.cygnus.gnu-win32@uma.snu.ac.kr>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

I want to a simple thing, extracting the contents of several files from the first line to the line where "Copyright" is shown, and stor the results into a file.
In example, there exist two files. One has the contents

>cat file1
function []= ...
.....
Copyright

and the other has
>cat file2
funtion []= ...
....
Copyright

As you know, 

sed -n '1,/Copyright/p' file? >> a_file

doesn't work. It only stores the extraction of the first file. So I tried in bash

bash> touch a_file
bash> for file in $(ls file?); do
> sed -n '1,/Copyright/p' file? >> a_file
>done

But this makes errors, saying "bash caused paging error in kernel32.dll."
What wrong with this?

Sung Hoon Kim
vivlavie AT plaza1 DOT snu DOT ac DOT kr

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019