add others

paste - -
This commit is contained in:
onceupon 2017-01-23 14:26:35 +08:00 committed by GitHub
parent ff846acbea
commit 8c8cd951eb

View File

@ -1285,6 +1285,26 @@ head -c 50 file
2. apt-get install evince
3. evince filename.pdf
```
#####group/combine rows into one row
e.g.
AAAA
BBBB
CCCC
DDDD
```bash
cat filename|paste - -
-->
AAAABBBB
CCCDDDD
cat filename|paste - - - -
AAAABBBBCCCCDDDD
```
#####fastq to fasta
```bash
cat file.fastq | paste - - - - | sed 's/^@/>/g'| cut -f1-2 | tr '\t' '\n' >file.fa
```
##System
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]