The gawk or awk (either one should work here) script utility could do it:

awk -e '{ print "      " substr($0, 7) }' < input.file > output.file

Note single quotes (apostrophes) surrounding the script, double quotes within 
for the 6 blanks.

HTH

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Frank Swarbrick
Sent: Wednesday, October 11, 2017 1:23 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: git, z/OS and COBOL

This looks interesting.  Do you know of a UNIX utility that would replace the 
first 6 characters with spaces?
________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
Jerry Callen <jcal...@narsil.org>
Sent: Wednesday, October 11, 2017 11:14 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: git, z/OS and COBOL

Regarding line numbering:  git has the ability to run complementary "clean" and 
"smudge" filters to be used when moving source between the repo and the working 
directory; these might prove useful. See 
https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes for more 
information.

That said - I agree that if you CAN move away from line numbering, you SHOULD.

(Shameless plug...) BTW, if anyone has git questions specific to the z/OS port 
of git from Rocket, please ask them on Rocket's open source forum at 
https://forum.rocketsoftware.com/c/rocket-z-os-open-source-languages-tools. I 
(and other Rocket employees) monitor it regularly.

--

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to