Transform an unstructured record into structured record in UNIX script Announcing the arrival...

Is this Kuo-toa homebrew race balanced?

How to make triangles with rounded sides and corners? (squircle with 3 sides)

Inverse square law not accurate for non-point masses?

One-one communication

How to achieve cat-like agility?

Getting representations of the Lie group out of representations of its Lie algebra

Is it OK to use the testing sample to compare algorithms?

.bashrc alias for a command with fixed second parameter

Can two people see the same photon?

Does the Rock Gnome trait Artificer's Lore apply when you aren't proficient in History?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

How to ask rejected full-time candidates to apply to teach individual courses?

How many time has Arya actually used Needle?

Does a random sequence of vectors span a Hilbert space?

Should man-made satellites feature an intelligent inverted "cow catcher"?

Did any compiler fully use 80-bit floating point?

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

New Order #6: Easter Egg

Does the main washing effect of soap come from foam?

Where and when has Thucydides been studied?

Marquee sign letters

What is the proper term for etching or digging of wall to hide conduit of cables

What are some likely causes to domain member PC losing contact to domain controller?

Google .dev domain strangely redirects to https



Transform an unstructured record into structured record in UNIX script



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionIterating fieldA in CSV file, where fieldB has specified valueMerging multiple rows into a single one using awkMerging two Unix filesModify string if original does not match particular stringA question about awkHow to count delimiters and remove Line Feeds if not meet thresholdawk or sed to display output one per line based of search patternHow to delete line if pattern is at specific positionTo compare column1 of two filesDisplay Student Record in Unix





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-1















Using UNIX script the following code to be developed.



I have a file 20-40 GB data contains data like below. Providing sample records.



AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull"


The expected output format should be as below. The column order should be AUTO,BUS,CAR,LORRY,CART,BULLCART,TRUCK



AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"


If you see the 1st record BUS is not there, need to insert BUS="commercial vehicle"
4th record BUS, CAR are not there, so, these also need to insert



please advise










share|improve this question









New contributor




BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • You can edit your own question if you have additional details, no need to comment. Also, is the output shown the full result based on the sample records? If not please indicate the full result you expect to get based on the input shown. And if you have some working code fragments please add them as well.

    – nohillside
    2 days ago











  • Since you seemingly want each line to be the same, why would it not be possible to just print the same line until you have the appropriate number of lines?

    – Kusalananda
    2 days ago


















-1















Using UNIX script the following code to be developed.



I have a file 20-40 GB data contains data like below. Providing sample records.



AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull"


The expected output format should be as below. The column order should be AUTO,BUS,CAR,LORRY,CART,BULLCART,TRUCK



AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"


If you see the 1st record BUS is not there, need to insert BUS="commercial vehicle"
4th record BUS, CAR are not there, so, these also need to insert



please advise










share|improve this question









New contributor




BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • You can edit your own question if you have additional details, no need to comment. Also, is the output shown the full result based on the sample records? If not please indicate the full result you expect to get based on the input shown. And if you have some working code fragments please add them as well.

    – nohillside
    2 days ago











  • Since you seemingly want each line to be the same, why would it not be possible to just print the same line until you have the appropriate number of lines?

    – Kusalananda
    2 days ago














-1












-1








-1








Using UNIX script the following code to be developed.



I have a file 20-40 GB data contains data like below. Providing sample records.



AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull"


The expected output format should be as below. The column order should be AUTO,BUS,CAR,LORRY,CART,BULLCART,TRUCK



AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"


If you see the 1st record BUS is not there, need to insert BUS="commercial vehicle"
4th record BUS, CAR are not there, so, these also need to insert



please advise










share|improve this question









New contributor




BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Using UNIX script the following code to be developed.



I have a file 20-40 GB data contains data like below. Providing sample records.



AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" CAR="Personal" LORRY="commercial vehicle" BULLCART="simple with bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" TRUCK="Multi purpose"
AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull"


The expected output format should be as below. The column order should be AUTO,BUS,CAR,LORRY,CART,BULLCART,TRUCK



AUTO="passengers only" BUS="commercial vehicle" CAR="Personal" LORRY="commercial vehicle" CART="simple without bull" BULLCART="simple with bull" TRUCK="Multi purpose"


If you see the 1st record BUS is not there, need to insert BUS="commercial vehicle"
4th record BUS, CAR are not there, so, these also need to insert



please advise







text-processing text-formatting wordpress write word-processing






share|improve this question









New contributor




BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 13 mins ago







BNRINBOX













New contributor




BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 17 at 13:04









BNRINBOXBNRINBOX

83




83




New contributor




BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






BNRINBOX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • You can edit your own question if you have additional details, no need to comment. Also, is the output shown the full result based on the sample records? If not please indicate the full result you expect to get based on the input shown. And if you have some working code fragments please add them as well.

    – nohillside
    2 days ago











  • Since you seemingly want each line to be the same, why would it not be possible to just print the same line until you have the appropriate number of lines?

    – Kusalananda
    2 days ago



















  • You can edit your own question if you have additional details, no need to comment. Also, is the output shown the full result based on the sample records? If not please indicate the full result you expect to get based on the input shown. And if you have some working code fragments please add them as well.

    – nohillside
    2 days ago











  • Since you seemingly want each line to be the same, why would it not be possible to just print the same line until you have the appropriate number of lines?

    – Kusalananda
    2 days ago

















You can edit your own question if you have additional details, no need to comment. Also, is the output shown the full result based on the sample records? If not please indicate the full result you expect to get based on the input shown. And if you have some working code fragments please add them as well.

– nohillside
2 days ago





You can edit your own question if you have additional details, no need to comment. Also, is the output shown the full result based on the sample records? If not please indicate the full result you expect to get based on the input shown. And if you have some working code fragments please add them as well.

– nohillside
2 days ago













Since you seemingly want each line to be the same, why would it not be possible to just print the same line until you have the appropriate number of lines?

– Kusalananda
2 days ago





Since you seemingly want each line to be the same, why would it not be possible to just print the same line until you have the appropriate number of lines?

– Kusalananda
2 days ago










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
});


}
});






BNRINBOX is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512998%2ftransform-an-unstructured-record-into-structured-record-in-unix-script%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








BNRINBOX is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















BNRINBOX is a new contributor. Be nice, and check out our Code of Conduct.













BNRINBOX is a new contributor. Be nice, and check out our Code of Conduct.












BNRINBOX 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512998%2ftransform-an-unstructured-record-into-structured-record-in-unix-script%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...