Search Results

Search: Posts Made By: bbetteridge
3,396
Posted By bbetteridge
Perfect! Now, it's become apparent that I...
Perfect!

Now, it's become apparent that I have to learn how to craft (or at the very least read and understand) regular expressions, so that I can do similar things without any issue.

I get...
3,396
Posted By bbetteridge
grep -v ^$ infile| sed -e :a -e 'N; s/\n//; ta'|...
grep -v ^$ infile| sed -e :a -e 'N; s/\n//; ta'| sed 's/||P/||\nP/g'

Thanks, but if the first character of a new line won't always start with P, would I change the P to a [A-z]?

Also, I just...
3,396
Posted By bbetteridge
Sure. Input: ...
Sure.

Input:

PDK12415|11/11/2008|PDK-01724|RandomBlah|Yes|Yes|Yes|No|No|No|09/12/2006|09/04/2008|"Blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah...
3,396
Posted By bbetteridge
Removing Embedded Newline from Delimited File
Hey there - a bit of background on what I'm trying to accomplish, first off. I am trying to load the data from a pipe delimited file into a database. The loading tool that I use cannot handle...
Showing results 1 to 4 of 4

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