This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to extract the file

I have a very large file and if the file name is "cleverboy.txt", I want to extract each line starts with numbers and its previous line, how can I do this? Thank you very much!

assembly

Hello cleverboy121!

We believe that this post is does not fit the main topic of this site.

This isn't a bioinformatics question. Also, you can use grep (use a regex and the "-B 1" option). If you update this such that it's relevant to bioinformatics then I'll reopen it.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.