This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting character/editing huge file on unix

 
Kripal Singh
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Insert a line before line 3, or insert a line befor the line matches 'Active':
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic