• 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