Results 1 to 3 of 3
I am trying to add something before and after a line of text, I guess the best way to do this would to use sed/awk??
---This would be the list ...
- 10-12-2009 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 2
sed/awk to append text
I am trying to add something before and after a line of text, I guess the best way to do this would to use sed/awk??

---This would be the list ----
iptable.txt
10.10.10.0/1
10.10.10.0/2
10.10.10.0/3
10.10.10.0/3
10.10.10.0/4
10.10.10.0/5
---Then I want to automatically add "network" before and "ip-map" after----
network 10.10.10.0/1 ip-map
network 10.10.10.0/2 ip-map
network 10.10.10.0/3 ip-map
network 10.10.10.0/3 ip-map
network 10.10.10.0/4 ip-map
network 10.10.10.0/5 ip-map
Any help would be much appreciated!!
thanks.
- 10-12-2009 #2
- 10-12-2009 #3Just Joined!
- Join Date
- Oct 2009
- Posts
- 2
Thank you so much Gerard!!!
it works perfect


Reply With Quote
