#!/usr/bin/perl use strict; use warnings; open(FIN,"< $ARGV[0]") || die "cant open file:$!"; while(<FIN>) { my $line = $_; open(FOUT,">$..line") || die "cant open file:$!"; print FOUT $line; close(FOUT); } close(FIN);
In reply to Re: splitting output to separate files, one per line
by kprasanna_79
in thread splitting output to separate files, one per line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |