I just used grep on a file tagged ISO8859 and it worked without using iconv.

t ISO8859-1   T=on  -rwxr-xr-x   1 XXXXXXX   ZZZZZZZ     2618 Feb 20 08:21 
cleanvi

>grep 'IBM' cleanvi
# Copyright 1996 IBM Corp.
#   The following enclosed code is sample code created by IBM
#   IBM product and is provided to you solely for the purpose
#   IBM shall not be liable for any damages arising out of your

I used both /bin/grep and /zopen/grep and both worked


Lionel B. Dyck <>< 
Github: https://github.com/lbdyck
System Z Enthusiasts Discord: https://discord.gg/sze

“Worry more about your character than your reputation. Character is what you 
are, reputation merely what others think you are.”   - - - John Wooden

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Itschak Mugzach
Sent: Thursday, April 18, 2024 7:59 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: grep ascii files...

Kirk,

I want to directly grep ascii files instead of iconv first.

ITschak

*| **Itschak Mugzach | Director | SecuriTeam Software **|** IronSphere
Platform* *|* *Information Security Continuous Monitoring for Z/OS, zLinux and 
IBM I **|  *

*|* *Email**: i_mugz...@securiteam.co.il **|* *Mob**: +972 522 986404 **|*
*Skype**: ItschakMugzach **|* *Web**: www.Securiteam.co.il  **|*





בתאריך יום ה׳, 18 באפר׳ 2024 ב-15:37 מאת Kirk Wolf <k...@coztoolkit.com>:

> 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 lists...@listserv.ua.edu with the message: INFO 
> > IBM-MAIN
> >
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

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

----------------------------------------------------------------------
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