Search Results

Search: Posts Made By: kitt
Forum: Programming 09-13-2011
3,266
Posted By kitt
I think it be some cross platform way ...
I think it be some cross platform way

#!/usr/bin/perl

use strict;
use warnings;
use Proc::Daemon;

Proc::Daemon::Init;

my $continue = 1;
$SIG{TERM} = sub { $continue = 0 };

while...
1,712
Posted By kitt
perl mode cat test.txt | perl -ne 'chomp; @v =...
perl mode
cat test.txt | perl -ne 'chomp; @v = split /(:?.{6})/,$_; map {print( $_ , qq/\n/) if length( $_) } @v'
xyz123
abc509
kai330
aca203
ald390
afa000
als303

---------- Post updated...
Showing results 1 to 2 of 2

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