remove new line from the middle of the line using the starting text string Unicorn Meta Zoo...
c++ diamond problem - How to call base method only once
Additive group of local rings
What is the best way to deal with NPC-NPC combat?
Raising a bilingual kid. When should we introduce the majority language?
Co-worker works way more than he should
Did the Roman Empire have penal colonies?
Justification for leaving new position after a short time
What to do with someone that cheated their way through university and a PhD program?
Retract an already submitted recommendation letter (written for an undergrad student)
Mistake in years of experience in resume?
My admission is revoked after accepting the admission offer
How to keep bees out of canned beverages?
Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?
Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?
Would reducing the reference voltage of an ADC have any effect on accuracy?
Is it OK if I do not take the receipt in Germany?
Has a Nobel Peace laureate ever been accused of war crimes?
How to translate "red flag" into Spanish?
How to avoid introduction cliches
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
PIC mathematical operations weird problem
Second order approximation of the loss function (Deep learning book, 7.33)
All ASCII characters with a given bit count
Is accepting an invalid credit card number a security issue?
remove new line from the middle of the line using the starting text string
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionRemove a particular line containing a number from a text filehow to extract a value from a string in xml using grep or awk in LinuxEdit an xml file - Find a string then Delete a block of text / Find a string then Insert a new block of textSolaris using sequence generator at the beginning of each new lineHow do I remove matching lines from one text file using another?append text with echo without new lineDelete certain character from the next line at the same position(s)?How can I remove a new line character in a particular column in a CSV file?Print one word more than one charter on new line using awk, sed, grepRemove new line, space from file
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I need to remove the new line character from the middle of a data. Here is the sample line items.
File: abc.txt
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good
File_Name|abc.txt|date|04212019|Sample data
is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is not good
again|Processing_date|04232019
I want the data to be like this:
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good File_Name|abc.txt|date|04212019|Sample data is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is notgood again|Processing_date|04232019
text-processing
New contributor
add a comment |
I need to remove the new line character from the middle of a data. Here is the sample line items.
File: abc.txt
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good
File_Name|abc.txt|date|04212019|Sample data
is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is not good
again|Processing_date|04232019
I want the data to be like this:
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good File_Name|abc.txt|date|04212019|Sample data is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is notgood again|Processing_date|04232019
text-processing
New contributor
1
I thought I knew what was expected, until I saw "half data is good" joined to the next line; is that intentional? All the lines have 7 fields except for the new line 2.
– Jeff Schaller♦
2 hours ago
we also seemed to have lost a space between "not" and "good" in the last item...?
– Jeff Schaller♦
2 hours ago
add a comment |
I need to remove the new line character from the middle of a data. Here is the sample line items.
File: abc.txt
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good
File_Name|abc.txt|date|04212019|Sample data
is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is not good
again|Processing_date|04232019
I want the data to be like this:
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good File_Name|abc.txt|date|04212019|Sample data is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is notgood again|Processing_date|04232019
text-processing
New contributor
I need to remove the new line character from the middle of a data. Here is the sample line items.
File: abc.txt
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good
File_Name|abc.txt|date|04212019|Sample data
is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is not good
again|Processing_date|04232019
I want the data to be like this:
File_Name|abc.txt|date|04212019|this is one full line|Client_name|Whole
File_Name|abc.txt|date|04212019|half data is good File_Name|abc.txt|date|04212019|Sample data is split|Client_Name|Marshals
File_Name|abc.txt|date|04212019|this is good again|Processing_date|03282019
File_Name|abc.txt|date|04212019|line is notgood again|Processing_date|04232019
text-processing
text-processing
New contributor
New contributor
edited 41 mins ago
Rui F Ribeiro
42.3k1485143
42.3k1485143
New contributor
asked 3 hours ago
samsam
1
1
New contributor
New contributor
1
I thought I knew what was expected, until I saw "half data is good" joined to the next line; is that intentional? All the lines have 7 fields except for the new line 2.
– Jeff Schaller♦
2 hours ago
we also seemed to have lost a space between "not" and "good" in the last item...?
– Jeff Schaller♦
2 hours ago
add a comment |
1
I thought I knew what was expected, until I saw "half data is good" joined to the next line; is that intentional? All the lines have 7 fields except for the new line 2.
– Jeff Schaller♦
2 hours ago
we also seemed to have lost a space between "not" and "good" in the last item...?
– Jeff Schaller♦
2 hours ago
1
1
I thought I knew what was expected, until I saw "half data is good" joined to the next line; is that intentional? All the lines have 7 fields except for the new line 2.
– Jeff Schaller♦
2 hours ago
I thought I knew what was expected, until I saw "half data is good" joined to the next line; is that intentional? All the lines have 7 fields except for the new line 2.
– Jeff Schaller♦
2 hours ago
we also seemed to have lost a space between "not" and "good" in the last item...?
– Jeff Schaller♦
2 hours ago
we also seemed to have lost a space between "not" and "good" in the last item...?
– Jeff Schaller♦
2 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
sam is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f515359%2fremove-new-line-from-the-middle-of-the-line-using-the-starting-text-string%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
sam is a new contributor. Be nice, and check out our Code of Conduct.
sam is a new contributor. Be nice, and check out our Code of Conduct.
sam is a new contributor. Be nice, and check out our Code of Conduct.
sam is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f515359%2fremove-new-line-from-the-middle-of-the-line-using-the-starting-text-string%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I thought I knew what was expected, until I saw "half data is good" joined to the next line; is that intentional? All the lines have 7 fields except for the new line 2.
– Jeff Schaller♦
2 hours ago
we also seemed to have lost a space between "not" and "good" in the last item...?
– Jeff Schaller♦
2 hours ago