I wanted to know how to operate on alternate lines in a file (in particular I have a text consisting of a regular line and a line written backwards which I would reverse with [::-1]). I'll start with an example:
Easter eggs,
,eulb dna wolleY
Easter eggs,
.uoy dna em roF
Easter eggs,
,teews ydnaC
Easter eggs,
.tae ot doog erA
And I want to have:
Easter eggs,
Yellow and blue,
Easter eggs,
For me and you.
Easter eggs,
Candy sweet,
Easter eggs,
Are good to eat.
How can I do this? Because I would like to be able to do it also with empty lines (one or more of a new line, that is '\t') as in the example. All this by scrolling through a file. Thanks
EDIT: For @Mr. Hobo The error is in the last paragraph
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ τροίης ἱερὸν πτολίεθρον ἔπερσεν:
πολλῶν δ' ἀνθρώπων ἴδεν ἄστεα καὶ νόον ἔγνω,
πολλὰ δ' ὅ γ' ἐν πόντῳ πάθεν ἄλγεα ὃν κατὰ θυμόν,
ἀρνύμενος ἥν τε ψυχὴν καὶ νόστον ἑταίρων.
ἀλλ' οὐδ' ὣς ἑτάρους ἐρρύσατο, ἱέμενός περ:
αὐτῶν γὰρ σφετέρῃσιν ἀτασθαλίῃσιν ὄλοντο,
νήπιοι, οἳ κατὰ βοῦς ὑπερίονος ἠελίοιο
ἤσθιον: αὐτὰρ ὁ τοῖσιν ἀφείλετο νόστιμον ἦμαρ.
τῶν ἁμόθεν γε,
θεά θύγατερ,
διός, εἰπὲ καὶ ἡμῖν.
,νορθελὄ νὺπἰα νογύφ ιοσὅ ,ςετνάπ νὲμ ιολλἄ 'θνἔ
νασσαλάθ ὲδἠ ςετόγυεφεπ ετ νόμελόπ ,νασἔ ιοκἴο
,ςὸκιανυγ ὲδἠ νονέμηρχεκ υοτσόν νοἶο 'δ νὸτ
νωάεθ αῖδ ὼψυλακ εκυρἔ 'ιντόπ ηφμύν
.ιανἶε νισόπ ηνέμοιαλιλ ,ισῖορυφαλγ ισσέπσ νἐ