Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <200110040922.LAA13370@cabs40.col.bsf.alcatel.fr> Date: Thu, 4 Oct 2001 11:22:37 +0200 (MEST) From: Jorge Goncalvez Reply-To: Jorge Goncalvez Subject: Re:System issue To: cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: NXYHDTxKvoFQ4/Jh8/ICqA== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc Hi I have a system issue in fact i have this code: note("SET ARP (system)\n"); a = inet_ntoa(*ia); sprintf(buf, "arp -d %s; arp -s %s `echo %s | sed -e s/:/-/g`", a, a, print_hw_addr(htype, hlen, haddr)); status = system(buf); And the output is: arp -d 192.40.54.42; arp -s 192.40.54.42 `echo 00:80:9f:04:36:13 | sed -e s/:/-/g` And I wanted to do is to interpret my sed command that seems to ne not onterpreted I wanted to tranform the third %s it is like that:xx:xx:xx:xx:xx:xx to xx-xx-xx-xx-xx-xx Thanks. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/