The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Deleting lines inside a file without opening the file toms Shell Programming and Scripting 3 09-24-2007 04:58 AM
making change in file without opening it naamas03 Shell Programming and Scripting 0 04-04-2006 01:11 AM
Opening a file during FTP ceaker High Level Programming 1 03-31-2006 11:40 PM
delete file without opening vi lweegp UNIX for Dummies Questions & Answers 7 01-25-2006 11:23 AM
opening a file hiei UNIX for Dummies Questions & Answers 4 03-31-2004 09:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 03-15-2006
Registered User
 

Join Date: Jul 2005
Posts: 137
Quote:
Originally Posted by GCTEII
I asked the same question last time ^O^. Its the easiest way to solve ur problem.
That should be
Quote:
I asked the same question last time. It's the easiest way to solve your problem.
The original poster said "without writing it to another file." Your method does not solve his problem.
Reply With Quote
Forum Sponsor
  #9  
Old 03-16-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Not to be a nay-sayer here, but it is not possible to use any text or stream command on a file without first opening the the input file. The folks who gave you answers know this, and were smart to bypass this apparent requirement.

There is no way to get data out of a file without reading the data from disk. Period.
Reply With Quote
  #10  
Old 03-16-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
very true jim,

a closed file would remain unchanged,
though the solutions provided apparently first opens the file and then only proceeds executing.

i believe - opening a file - as the request means - physically opening it through any of the editor and modifying it - may be that one.

And identifying the list of datablocks pertaining to an inode and modifying could be another way.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0