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