🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-08-2021 01:52 PM
(1878 views)
Hi All,
I would like to see if there is a way to search for string across all programs in a directory. For example let say there is a directory XYZ which stores all the SAS programs and I want to search weather string 'ABC' is present in any of the of SAS programs in this directory. Is there a way to do it ? Any help is appreciated.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If your SAS server runs on UNIX, log on to it with ssh, navigate to the directory, and run
grep -i abc *.sas
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I should have mentioned this is on Windows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content