ok i asked around to a few ppl and they said to use sed or awk to do what i want.. but i cant figure out how to use it like that..
anyway i have a text file that is 10k lines long.. i need to move text from the end of a line after the ? and move it to the front of the line then add a | after it.
here is an example of what i am looking at
heres how the text file is now.
1960's: who recorded groovin?young rascals
1960's: who recorded like a rolling stone?bob dylan
needs to look like this
young rascals|1960's: who recorded groovin?
bob dylan|1960's: who recorded like a rolling stone?
if anyone can help me out with this please do.. it will take me forever to do it by hand
thanks in advance