From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28133 invoked from network); 6 Apr 2001 13:14:09 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 Apr 2001 13:14:09 -0000 Received: (qmail 7304 invoked by alias); 6 Apr 2001 13:13:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3807 Received: (qmail 7292 invoked from network); 6 Apr 2001 13:13:55 -0000 X-Authentication-Warning: greux.loria.fr: lefevre set sender to vincent@vinc17.org using -f Date: Fri, 6 Apr 2001 15:13:48 +0200 From: Vincent Lefevre To: zsh-users@sunsite.auc.dk Subject: Parameter expansion: tr? Message-ID: <20010406151348.A27201@greux.loria.fr> Mail-Followup-To: zsh-users@sunsite.auc.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i X-Mailer-Info: http://www.vinc17.org/mutt_eng.html I've seen how one can do a string substitution in a parameter expansion, but how can I do a tr, e.g. to swap the "." and "/" characters? Is there a simple way to do that, or do I need associative arrays? -- Vincent Lefèvre - Web: - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA