- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command to look thru every file on server for "8.1...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 07:24 AM
01-14-2005 07:24 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 07:27 AM
01-14-2005 07:27 AM
Re: command to look thru every file on server for "8.1.6" in it
find / -type f -exec grep 8.1.6 {} \;
BUT, that can be somewhat intensive. If you could limit it to a set of subdirectories it would probably be better.
-dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 07:32 AM
01-14-2005 07:32 AM
Re: command to look thru every file on server for "8.1.6" in it
-dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 07:41 AM
01-14-2005 07:41 AM
Re: command to look thru every file on server for "8.1.6" in it
cd to desired starting directory:
find . -type f | while read X
do
file "${X}" | grep -q -i "text"
STAT=${?}
if [[ ${STAT} -eq 0 ]]
then
grep -q '8.1.6' "${X}"
if [[ ${STAT} -eq 0 ]]
then
echo "${X}"
fi
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 07:42 AM
01-14-2005 07:42 AM
Re: command to look thru every file on server for "8.1.6" in it
This may kill cpu. And running it from / is a problem. also you may want to have a look at grep man page for optons like -i, -w , -w etc.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 08:39 AM
01-14-2005 08:39 AM
Solutionanswers. grep for "8.1.6" string would match
"8a1b6" too as '.' means any single char.
Kind of like single char wildcard. So you might
want to grep for "8\.1\.6"
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 10:49 PM
01-14-2005 10:49 PM
Re: command to look thru every file on server for "8.1.6" in it
find / -name "*" -exec grep -il "8.1.6" {} \;
This will search all dir's and sub dir's below / and list the files where 8.1.6 is found
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 06:46 PM
01-16-2005 06:46 PM
Re: command to look thru every file on server for "8.1.6" in it
I assume you are trying to eliminate an oracle install. The official, and only supported, path is to use the installer program. Executables may have also being linked against 8.1.6 libraries, but will not show in any of the above!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2005 07:08 PM
01-16-2005 07:08 PM
Re: command to look thru every file on server for "8.1.6" in it
find / -type f -exec grep 8.1.6 {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 12:02 AM
01-17-2005 12:02 AM
Re: command to look thru every file on server for "8.1.6" in it
find . -type f | while read X
strings $X | egrep '8\.1\.6'
if [ $? -eq 0 ];then
echo $X >>/tmp/816.m