View Single Post
  #5   (View Single Post)  
Old 13th December 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,503
Default

You also can restore the blanks into underscores with:
Code:
:%s/ pkg/_pkg/
In vi as well in sed and perl, you can avoid the 'leaning toothpick syndrome' by choosing another delimiter e.g.
Code:
:%! pkg!_pkg!
Code:
s!^\([^-]*\)-\(pkg.*\)!mv \1-\2 \1_\2!
or

Code:
s#^\([^-]*\)-\(pkg.*\)#mv \1-\2 \1_\2#
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote