Accidentally wrote a huge text output in laptop, now do not know how to edit SW. Text editors to crash, even a console. Cat just outputs, but how to edit? conclusion unfortunately somewhere in the middle of the script
If you know any key words or designs in the beginning and end of the desired fragment, you can use "grep -n" to find their corresponding line numbers and using "head-n" and "tail-n" to cut the extra pieces from the beginning and the end. There will be only the desired fragment.
If you search for line numbers is difficult, but roughly know the location of the fragment (for example, in the middle Fula), you can use "dd skip=<offset> count=<size>" to take a bite of a piece of reasonable size with an approximate displacement, and this small piece of text editor to search for the necessary fragment.