LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: MadeInGermany
Forum: Programming 03-02-2024, 04:44 AM
Replies: 13
Views: 277
Posted By MadeInGermany
The following inserts newlines before every...

The following inserts newlines before every something that is not at the beginnning of the line.
sed -r 's/(.)(something)/\1\n\2/g' filename
A character (.) must be before the something, otherwise...
Showing results 1 to 1 of 1

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 12:44 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration