I need some help with a script that reads a mail log file in , and outputs it to a file, which has the same info. in other words every field in the mail log line will be seperated by spaces, and these fields should be output should be surrounded by quotes,seperated by commas.
any help would be...
I need some help with a script that reads a mail log file in , and outputs it to a file, which has the same info. in other words every field in the mail log line will be seperated by spaces, and these fields should be output should be surrounded by quotes,seperated by commas.
any help would be...
I need help seeing the difference in the number lines, in this script i writing back the previous number of lines. I need a subtraction statement. thanks, N
$data_file = "/root/bin/load.data2";
open(FILE,"<$data_file") or die "Cant open $data_file2: $!\n";
@log =...
well this code works, but the output is taking the current value and putting it in the front of the output, dont know whats going on.
, "76749" 7 13:40:00 2003","1.50","75","1103","78417"
, "78417" 7 13:41:00...
my $data_file = "/root/bin/load.data2";
open(FILE,"<$data_file") or die "Cant open $data_file2: $!\n";
my @log = <FILE>;
close(FILE);
my $last_element='"0"';
while (<>){
chomp;
@log = split ',';
print "$_, $last_element\n";
$last_element =...
need to figure out way to take the end of a log file value and take that value and add it to the end of the next line. So it would look something like this.
"x","x","x","100"
"x","x","x","200"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.