Score:-5

How do i replace all the contents from a file using a text

in flag

I basically created a file text in Linux under the name of Linuxchallenge.txt which has content inside the file of:

<3 Archer Quotes

Do you want ants? because that's how you get ants!

Nope nope nope nope nope nope nope... you don't want to do that.

Do you think this is a game?
No, I think Jenga is a game.

Lana. Lana? Lana! LANAAAAAA!
What?
....Danger zone

However i want to change all the text from that above to this below:

one  four    seven
two  five    eight
three    six     nine

How would I do it as I am struggling to complete this task?

David avatar
cn flag
Show us the code you have written.
Amir Ibrahim avatar
in flag
<text> <3 Archer Quotes Do you want ants? because that's how you get ants! Nope nope nope nope nope nope nope... you don't want to do that. Do you think this is a game? No, I think Jenga is a game. Lana. Lana? Lana! LANAAAAAA! What? ....Danger zone </text>
Amir Ibrahim avatar
in flag
how ever i want to change all the text from to this
Amir Ibrahim avatar
in flag
<text> one four seven two five eight three six nine </text>
tripleee avatar
nz flag
`printf '%s\t%s\t%s\n' one four seven two five eight three six nine > Linuxchallenge.txt`
tripleee avatar
nz flag
`printf '%s\n' one two three four five six seven eight nine | pr -bt3 -w 24 `
David avatar
cn flag
You are not showing what you have tried you are just repeating what you want. You need to try and do this yourself as I already stated.
Amir Ibrahim avatar
in flag
tripleee it prints but not inside the txt file
Amir Ibrahim avatar
in flag
david basically am working inside a vmware so hard for me to show you what i have done but i what i have been able to print the one two three and so on but i am not able to print format as -bt3 -w24 when i open the linuxchallenge.txt
Amir Ibrahim avatar
in flag
thank you triplee i have managed to sort it out
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.