Hi my sequence is like tis, i want to remove new line character s between two fasta seq and also want to remove new line character within the sequence.
i have used tr -d '\n' <file name<="" p="">
but the file is not geting modified and saved, also there is no line break between the seq.
>gi|339714733|gb|JK209933.1|JK209933 RIRL_009841 Ralstonia solanacearum challenged root cDNA library of peanut (Arachis hypogaea) Arachis hypogaea cDNA clone ocprra0_0120_C01.ab1, mRNA sequence
GGGGAAGCAGAGGACGGCCATTGAGCAGCCAAACCACCAGCAGCGACAGCGATGGTCCTCAAGACGGAAC
TTTGCCGCTTTAGTGGCGCGAAGATCTACCCTGGGAAGGGCATCAGATTCGTTCGTGGTGATTCTCAGGT
CTTTCTGTTTTCAAACTCGAAATGCAAAAGGTATTTCCACAATCGTTTGAAGCCATCAAAGCTCACATGG
ACTGCCATGTATAGGAAGCAACACAAAAAGGACATTGCTCAAGAAGCTGTGAAGAAGAAGCGTCGTGCTA
CCAAGAAGCCATACTCTAGGTCAATTGTTGGTGCTACCTTGGAAGTTATCCAGAAGAGAAGAACCGAGAA
GCCTGAAGTTAGAGATGCAGCAAGGGAAGCTGCTCTTCGTGAAATTAAAGAGAGGATCAAGAAGACAAAA
GATGAGAAAAAGGCTATGAAGGCAGAGGTATCGGCTAAGCAACAAAAGGCACAGGGCAAAGGCCATGTTA
CAAAGGTTGCTGCACCGAAAGGTCCCAAACTTGGTGGAGGAGGTGGCAAA
>gi|339714732|gb|JK209932.1|JK209932 RIRL_009840 Ralstonia solanacearum challenged root cDNA library of peanut (Arachis hypogaea) Arachis hypogaea cDNA clone ocprra0_0120_B12.ab1, mRNA sequence
GGGGGACCAAGGAGTTCAACTGNGAGTGTGAGTCGTAGCAAAAAAAAAAAAAATTTAAAAAACAAATTTT
AAAAATAAATGCATACGGCGTAACGAAAGTAACTTAACAAAAAAAAAGGTAAGACGTCTTTTTTTTTTTA
AAAAGAGACTCCATTACCGGCCAGCTAGGAACACTGTTGTTTTGACTTAGTGCAATGACCAGTGCTTCTT
TTTTTTTTTTTTTTTTAAAAAAAAAAGAAAGAGTAGTTGAGCTAATGAACATTTTTGTTGAGACCCGAAA
GATGGTGAACTATTCTCGGACATGGTGAAGTCAGGTGAAAACTTGATGGAAGCTTGCGTTGTGAGGAACT
GACGTGCAAATCGTTGCCTCCTGAACTGAGTATAGGGGCGAAAGACTAATCGAACCATCGAGTAGCTGGT
TCTCTCCGAAGTTTCCCTCAGGATAGCTCGAGTCTATTTTTATAGAGTANCATGG
you could check this post for the second part of your question multiline fasta to one line fasta. for the fisrt part I find a way with sed StackOverflow sed '/^\s*$/d' file.