The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Decrease the Line Gap in a files and Echo a strings thepurple Shell Programming and Scripting 5 12-08-2008 02:03 AM
Find Strings in Files thepurple Shell Programming and Scripting 3 10-04-2008 06:23 AM
Merge two strings not from files buddyme UNIX for Dummies Questions & Answers 2 07-15-2008 10:17 PM
comparing strings in seperate files orahi001 UNIX for Dummies Questions & Answers 2 03-27-2008 12:04 PM
appending strings in the files vijaylak UNIX for Dummies Questions & Answers 2 03-09-2007 07:34 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-09-2009
synthea synthea is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 2
Strings does not work for big files

I was trying to calculate DBID of oracle database according to the topic Oracle in World: How to Discover find DBID and following number 2) mechanism specified there that is using of strings keyword.

My unfortunately my oracle database datafile is so big that I could not use strings keyword for searching.

I used,
strings datafilename_loc.

It failed with big file size. What I will do now?
How I can open file with strings?
  #2 (permalink)  
Old 08-09-2009
scottn scottn is online now Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,046
Hi.

Instread of grep, perhaps you could use sed?

Code:
strings ..... | sed "/MAXVALUE/!d;q"
Or with grep:
Code:
strings .... | grep -m1 MAXVALUE
Alternatively select a smaller file (perhaps a redo log) which also contains the number, or choose another method as described in the article.

Last edited by scottn; 08-09-2009 at 05:59 AM..
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0