Hi, I have a file containing IP addresses & ranges, their negations, and comments. E.g.,
1.1.1.1 # comment A 2.2.2.2/29 # comment B !3.3.3.3 # comment C !4.4.4.4/28 # comment D I need to extract those IPs & ranges, rearrange them into a comma-separated list, e.g., 1.1.1.1,2.2.2/29,!3.3.3.3,!4.4.4.4/28 I've read that Perl (which I don't know yet at all) is "best" for Text processing like this. The thing is that I need to do this from within a Bash script, and assign the comma-separated list to a variable in that Bash script. Can I even use Perl like this, from inside a Bash script? What would be the right way to go about this? Thanks. --JC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/