× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Guy,

Try:

grep -R '110000890' .

The -R tells it to search what's inside a directory. (Including files and subdirectories.) The . character means "the current directory"



On 1/22/2012 12:47 PM, Guy Geboers wrote:
Hi Mark,

first I change the current directory : cd /M3BE/env/PRD/Output
next I execute the grep command : grep '110000890' *

I recieve the following error : qsh:001-0085 : Too many arguments
specified on command

Guy






From: "Mark S. Waterbury"<mark.s.waterbury@xxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion<midrange-l@xxxxxxxxxxxx>
Date: 18/01/2012 17:01
Subject: Re: Search in content of a IFS file
Sent by: midrange-l-bounces@xxxxxxxxxxxx



Guy:

Use: grep pattern filename

Example:
grep 'test' *
will search all files in the current directory for lines that
contain the pattern "test" ...

Do this from Qshell (STRQSH or QSH).

Then, change the current directory to the directory that contains the
files you want to search, e.g.:

cd /QIBM/UserData

Then issue the grep command, e.g.:

grep 'test' *

The output will show each file name that contains a match, and the data
found.

Hope that helps.

Mark S. Waterbury




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.