in reply to Re^2: tabular format of data
in thread tabular format of data

Sure, show your code

Replies are listed 'Best First'.
Re^4: tabular format of data
by deepak_4682us (Initiate) on Feb 18, 2012 at 01:14 UTC
    A.txt:- A:B C:D code: # it has column1 values of txt file @a1=`cut -d":" -f1 < A.txt; # it has column2 values of txt file @a2=`cut -d":" -f2 < A.txt; I wanted to reprent the values in tabular form

      eew , you're shelling out for cut

      Here is a oneliner

      perl -F: -lane " print qq/-------/ if 1==$.; print join q/|/, @F, qq// +; print q/--/ x @F, qq//; " < infile > outfile

      more verbosely written as

      BEGIN { $/ = "\n"; $\ = "\n"; } LINE: while (defined($_ = <ARGV>)) { chomp $_; our(@F) = split(/:/, $_, 0); print '-------' if 1 == $.; print join('|', @F, ''); print '--' x @F, ''; }
A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.