Behold the power of Unix pipelines:

$ iconv -f ISO8859-1 -t IBM-1047  myasciifile | grep  MATCH

iconv is not "first converting" the the whole file to EBCDIC since both iconv 
and grep run at the same time :-)

Kirk Wolf
Dovetailed Technologies
https://coztoolkit.com

On Thu, Apr 18, 2024, at 4:03 AM, ITschak Mugzach wrote:
> Is there any command to grep ascii files without the need to first convert
> them to ebcdic (iconv -f)?
> 
> ITschak
> 
> ITschak Mugzach
> *|** IronSphere Platform* *|* *Information Security Continuous Monitoring
> for z/OS, x/Linux & IBM I **| z/VM coming soon  *
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to