hi I'm kind of a noob at Unix stuff,
I have a text file with huge quantities of text.
I need to locate and extract certain lines of text.
The stuff I care about starts with: /translation=
Basically I want to do a shell script where all the stuff in quotes would be printed in the terminal
and It would be great to be able to select which instance it appears, like the 3rd one or something
Example:
...(random stuff)...
/translation="MKQYIVLACMCLAAAAMPASLQQSSSSSSSCTEEENKHHMGIDV IIKVTKQDQTPTNDKICQSVTEITESESDPDPEVESEDDSTSVEDVDPPTTYYSIIGG GLRMNFGFTKCPQIKSISESADGNTVNARLSSVSPGQGKDSPAITHEEALAMIKDCEV SIDIRCSEEEKDSDIKTHPVLGSNISHKKVSYEDIIGSTIVDTKCVKNLEFSVRIGDM
CKESSELEVKDGFKYVDGSASKGATDDTSLIDSTKLKACV"
...(random stuff)...
*becomes*
MKQYIVLACMCLAAAAMPASLQQSSSSSSSCTEEENKHHMGIDVIIKVTKQDQTPTNDKICQSVTEITESESDPDPEVESEDDSTSVEDVDPPTTYYSIIGGGLRMNFGFTKCPQIKSISESADGNTVNARLSSVSPGQGKDSPAITHEEALAMIKDCEVSIDIRCSEEEKDSDIKTHPVLGSNISHKKVSYEDIIGSTIVDTKCVKNLEFSVRIGDMCKESSELEVKDGFKYVDGSASKGATDDTSLIDSTKLKACV
I would want to make the above a string to be used elsewhere
THANKS to anyone who helps
I have a text file with huge quantities of text.
I need to locate and extract certain lines of text.
The stuff I care about starts with: /translation=
Basically I want to do a shell script where all the stuff in quotes would be printed in the terminal
and It would be great to be able to select which instance it appears, like the 3rd one or something
Example:
...(random stuff)...
/translation="MKQYIVLACMCLAAAAMPASLQQSSSSSSSCTEEENKHHMGIDV IIKVTKQDQTPTNDKICQSVTEITESESDPDPEVESEDDSTSVEDVDPPTTYYSIIGG GLRMNFGFTKCPQIKSISESADGNTVNARLSSVSPGQGKDSPAITHEEALAMIKDCEV SIDIRCSEEEKDSDIKTHPVLGSNISHKKVSYEDIIGSTIVDTKCVKNLEFSVRIGDM
CKESSELEVKDGFKYVDGSASKGATDDTSLIDSTKLKACV"
...(random stuff)...
*becomes*
MKQYIVLACMCLAAAAMPASLQQSSSSSSSCTEEENKHHMGIDVIIKVTKQDQTPTNDKICQSVTEITESESDPDPEVESEDDSTSVEDVDPPTTYYSIIGGGLRMNFGFTKCPQIKSISESADGNTVNARLSSVSPGQGKDSPAITHEEALAMIKDCEVSIDIRCSEEEKDSDIKTHPVLGSNISHKKVSYEDIIGSTIVDTKCVKNLEFSVRIGDMCKESSELEVKDGFKYVDGSASKGATDDTSLIDSTKLKACV
I would want to make the above a string to be used elsewhere
THANKS to anyone who helps