On Mon, 27 Jun 2022 19:10:43 +0000, Frank Swarbrick wrote:
>I know this is very basic, but it's been a while... I want to copy a file
>where each record in the new file omits the first X number of characters from
>the source file, but includes everything else. Both files are variable length
>files.
>I imagine sort (I have IBM DFSORT) is the appropriate tool,
>
It usually is.
> ... but I'm simply not sure what options to specify.
>
That's frequently the problem.
I use:
sed -E s/^.{X}//
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN