aspose file tools*
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
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Inserting character/editing huge file on unix