From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 779 invoked from network); 25 Jan 1998 15:25:53 -0000 Received: from ns2.primenet.com.au (203.24.36.3) by ns1.primenet.com.au with SMTP; 25 Jan 1998 15:25:52 -0000 Received: (qmail 1118 invoked from network); 24 Jan 1998 20:41:57 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns2.primenet.com.au with SMTP; 24 Jan 1998 20:41:57 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id PAA28355; Sat, 24 Jan 1998 15:22:20 -0500 (EST) Resent-Date: Sat, 24 Jan 1998 15:22:06 -0500 (EST) Message-Id: <199801242023.PAA25336@luomat.peak.org> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 4.1mach v148) X-Image-URL: http://www.peak.org/~luomat/next/luomat@peak.org.tiff X-Nextstep-Mailer: Mail 4.1mach (Enhance 2.1) From: Timothy J Luoma Date: Sat, 24 Jan 98 15:23:43 -0500 To: zsh-users@math.gatech.edu Subject: zsh script wipes out my PROMPT and RPROMPT X-Image-URL-Disclaimer: hey, it's off my student ID, gimme a break ;-) Resent-Message-ID: <"xYt-G1.0.Xw6.jraoq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1276 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu This script wipes out the PROMPT and RPROMPT This is for zsh 3.0.5 (both the script and my login shell) #!/usr/local/bin/zsh -f PATH=/Users/luomat/Unix/bin:/Users/luomat:/usr/local/gnu/bin:/usr/local/bin:/bin:/usr/ucb:/usr/bin:/usr/etc:/usr:/etc TIME=`date +"%s"` NAME=`basename $0` FILE=${HOME}/.$NAME.$TIME netstat -n |\ fgrep ESTABLISHED |\ fgrep -v '192.42.172.2' |\ awk '{print $4"\t\t"$5}' > $FILE LINES=`wc -l $FILE | awk '{print $1}'` for i in {1..$LINES}; do INFO=`cat -n $FILE |\ sed 's/ *//g' |\ grep -w "^$i" |\ awk '{print $2" "$3}'` echo "Line $i: $INFO" done echo "Here is the file:" cat $FILE rm -f $FILE exit 0