delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/26/12:36:48

Message-ID: <915C65C50371D11187AD0000F881B9A401858CF1@bcarua62.ca.nortel.com>
From: "Ian Chapman" <Ian DOT Chapman DOT ichapman AT nt DOT com>
To: "'Olivier Perron'" <perron AT art DOT alcatel DOT fr>
Cc: djgpp AT delorie DOT com
Subject: RE: Bash script
Date: Mon, 26 Oct 1998 12:32:58 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

Thanks Oliver,
	now I understand what that Unix line "#! user/bin/bash" was all
about.

		Regards Ian

> ----------
> From: 	Olivier Perron[SMTP:perron AT art DOT alcatel DOT fr]
> Sent: 	Monday, October 26, 1998 11:58 AM
> To: 	Chapman, Ian [CAR:TM14:EXCH]
> Cc: 	djgpp AT delorie DOT com
> Subject: 	Re: Bash script
> 
> On Mon, 26 Oct 1998, Ian Chapman wrote:
> 
> [...]
> > 
> > #! e:/djgpp/bin
> ~~~~~~~~~~~~~~~~
> Shouldn't it be #!e:/djgpp/bin/sh ? (If you made a copy of bash.exe to
> sh.exe, otherwise it should be #!e:/djgpp/bin/bash.exe)
> You didn't mention the full path name to the shell executable wich will
> process your script.
> I think that may be your problem.
> 
> > awk -F, '{
> >         print $4 ", "$0
> >         }' $* |
> > sort |
> > awk -F, '
> > $1 == LastState {
> >         print "\t" $2
> > }
> > $1 != LastState {
> >         LastState =$1
> >         print $1
> >         print "\t" $2
> > }'
> > 
> > 
> 

- Raw text -


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