I'm messing with shit today, sorry about the theme change. -RBCPI hate new things. -Murd0c
#!/usr/bin/perlopen (FILE, "file.txt");@lines = <FILE>;close (FILE);chomp @lines;print "$lines[0] $lines[1]\n";print "$lines[2] $lines[3]\n";print "$lines[4] $lines[5]\n";print "$lines[6] $lines[7]\n";print "$lines[8] $lines[9]\n";print "\n";print "$lines[10] $lines[11]\n";print "$lines[12] $lines[13]\n";# go on from there...exit;
#!/usr/bin/perl$n = 0;open (FILE, "file.txt");@lines = <FILE>;close (FILE);chomp @lines; $m = $#lines;until ($n > $m) { print "$lines[$n]"; $n++; print " $lines[$n]\n"; $n++;print "$lines[$n]"; $n++; print " $lines[$n]\n"; $n++;print "$lines[$n]"; $n++; print " $lines[$n]\n"; $n++;print "$lines[$n]"; $n++; print " $lines[$n]\n"; $n++;print "$lines[$n]"; $n++; print " $lines[$n]\n"; $n++;print "\n"; }
cat file.txt | sed 's/ /\n/g'
i luv you guys. i love pla. and today it's my birthday. 11-7-1980.
Quote from: Magus on March 01, 2009, 08:50:59 PMJust become a gay. They're always happy.Except for murd0c.
Just become a gay. They're always happy.