Search Results

Search: Posts Made By: stateful
2,167
Posted By stateful
Thanks
Thanks for the help, guys. Good stuff.

Stateful
2,167
Posted By stateful
PERL Text Munging
I have a file like this:


host1,neighbor1
host3,neighbor4
host2,neighbor1
host2,neighbor3
host1,neighbor3
host3,neighbor1
host1,neighbor2
host3,neighbor2


I need some PERL magic that...
84,665
Posted By stateful
Tiger99, Is the file CSV or excel (XLS)?
Tiger99,
Is the file CSV or excel (XLS)?
17,009
Posted By stateful
Which one were you running?
Which one were you running?
42,381
Posted By stateful
From the command line: #!/usr/bin/perl # ...
From the command line:
#!/usr/bin/perl
#
$ip_address = $ARGV[0];

@octets = split(/\./, $ip_address);
$DEC = ($octets[0]*1<<24)+($octets[1]*1<<16)+($octets[2]*1<<8)+($octets[3]);

print "The...
17,009
Posted By stateful
I'd probably use diff too... If the lines in...
I'd probably use diff too...

If the lines in the files are similar to the lines you put in your first post, meaning there are no spaces on the lines, you could:


#!/bin/sh
for k in `cat...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy