Search Results

Search: Posts Made By: leolson
15,121
Posted By leolson
Thanks. Although this works fine for the case I...
Thanks. Although this works fine for the case I presented, I noticed that there could be an issue if one of the first 3 characters was a * to begin with.

In:
a*a*a*a*Out:
a*******


Thanks! ...
15,121
Posted By leolson
How to replace all but the first 3 characters with sed?
This seems like it should be an easy problem, but for some reason I am struggling with the solution.
I simply want to replace all characters after the first 3 characters with another character,...
2,636
Posted By leolson
Ah ha! That's it. In the back of my mind I knew...
Ah ha! That's it. In the back of my mind I knew that you could do regex record separators in awk, but for some reason it never occurred to me to try it here. It worked perfectly.
Thanks a lot!
2,636
Posted By leolson
I am not sure how I would apply fold here. I...
I am not sure how I would apply fold here. I only want insert new lines where the string "*end*" occurs and the RANDOMDATA can be of varying length and contain *'s.
2,636
Posted By leolson
Need help splitting huge single record file
I was given a data file that I need to split into multiple lines/records based on a key word. The problem is that it is 2.5GB or bigger and everything I try in perl or sed causes a Segmentation...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 02:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy