sed issue
Jorge Goncalvez
goncal11@col.bsf.alcatel.fr
Thu Oct 4 00:07:00 GMT 2001
Hi, I have this code:
sprintf(buf, "arp -d %s; arp -s %s %s ",
a, a, print_hw_addr(htype, hlen, haddr));
What I wanted to do is to take the third %s which is like this:
XX:XX:XX:XX:XX:XX to tranform it like this
XX-XX-XX-XX-XX-XX
I tried this:
sprintf(buf, "arp -d %s; arp -s %s `echo %s | sed -g s/:/-/`",
a, a, print_hw_addr(htype, hlen, haddr));
But it didn't work why?
Thanks a lot for you precious help.
--
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/
More information about the Cygwin
mailing list