The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-25-2008
nvenkat010 nvenkat010 is offline
Registered User
 

Join Date: Jan 2008
Posts: 3
Adding spaces to record

Hi,

I want to print spaces in a trailer record which is a single command.

namely the unix command which i already have

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 at the end. Is there any way by which i can do in same command
Reply With Quote
Remove advertisements
!!
Forum Sponsor