I want to copy a existing file to a fixed length file. Thanks , I used awk getline and infuntion mode was using 0 as end of file. and length to give but the programs comes out without doing anything
I need the help
CM
I want to copy a existing file to a fixed length file. Thanks , I used awk getline and infuntion mode was using 0 as end of file. and length to give but the programs comes out without doing anything
I need the help
CM
#! /usr/bin/ksh
typeset -L70 line
while read line ; do
echo "$line"
done
exit 0
You could use awk...
awk '{printf "%-70s\n",$0}' infile > outfile
Hi,
My questions goes in the same line. rather i want to print spaces in a trailer record which i generate as a single command.
namely the trailer command
recs=`wc -l $TargetFileDir/myfile.txt|cut -c1-9`;export recs;echo 'PCPC.DXDINPT.FC0.INPUTFLE.PASS'`date +%Y%m%d``printf '%015d\n' $recs` >> $TargetFileDir/myfile1.txt
I wanted add a filler of say 200 spaces. Is there any awk can be used??