This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Inserting character/editing huge file on unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Inserting character/editing huge file on unix" Watch "Inserting character/editing huge file on unix" New topic
Author

Inserting character/editing huge file on unix

Kripal Singh
Ranch Hand

Joined: Jul 26, 2001
Posts: 254
I am trying to insert a newline character after a pattern of character in a huge file in Solaris . Tried using split and awk and got segmentation fault . i gues sed will be another way of doing the same . any scriping ideas or command .


# Help an unprivileged kid.<br /> Whatever u do will make a difference...<br /> ...to a child's life & ur own #<br /><a href="http://www.cry.org/" target="_blank" rel="nofollow">www.cry.org/</a>
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Insert a line before line 3, or insert a line befor the line matches 'Active':


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting character/editing huge file on unix
 
Similar Threads
StreamTokenizer problem again...
Value changes from "1" to "l" after reading to file
Parsing a huge File
Limit character read using Reader?
Bonus Master Exam?