From: michael DOT mauch AT gmx DOT de (Michael Mauch) Subject: Re: B18: "sed ** >> a_file", paging error in kernel32.dll in window 95 Korean Version 20 Aug 1998 04:06:38 -0700 Message-ID: <199808190646.XAA04272.cygnus.gnu-win32@cygnus.com> References: <000101bdc9d6$590c3b00$ee832e93 AT uma DOT snu DOT ac DOT kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: =?ISO-8859-1?Q?=22Sung_Hoon=2C_Kim_=28=B1=E8=BC=BA=C8=C6=29=22?= Cc: Hi Kim, > 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? Of course it shouldn't cause a paging error, but try the commands: for file in file?; do sed -n '1,/Copyright/p' file? >> a_file; done Note that you don't have to call 'ls' for filename expansion in the for-list, and note the semicolon before the 'done'. Regards... Michael - 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".