C
cyrusgreats
I'm using the following regex using perl to get anything that is not
0.0 but it doesn't work the way I want it, I need to print those that
are not 0.0
The string is:
0.0 19968 admin /bin/bash -l
1.0 20037 admin /bin/bash -l
0.2 20085 admin /bin/bash -l
0.0 20363 admin /bin/bash -l
next if $line =~ /^\s0.0/; # skip 0.0
print $line, "\n";
the out put is:
next if $line =~ /^\s0.0/; # skip 0.0
But I all I want is:
1.0 20037 admin /bin/bash -l
0.2 20085 admin /bin/bash -l
Anyone out there know how to fix this one?
Thanks in advance..
0.0 but it doesn't work the way I want it, I need to print those that
are not 0.0
The string is:
0.0 19968 admin /bin/bash -l
1.0 20037 admin /bin/bash -l
0.2 20085 admin /bin/bash -l
0.0 20363 admin /bin/bash -l
next if $line =~ /^\s0.0/; # skip 0.0
print $line, "\n";
the out put is:
next if $line =~ /^\s0.0/; # skip 0.0
But I all I want is:
1.0 20037 admin /bin/bash -l
0.2 20085 admin /bin/bash -l
Anyone out there know how to fix this one?
Thanks in advance..