mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-29 15:46:35 +00:00
add others
paste - -
This commit is contained in:
parent
ff846acbea
commit
8c8cd951eb
20
README.md
20
README.md
@ -1285,6 +1285,26 @@ head -c 50 file
|
|||||||
2. apt-get install evince
|
2. apt-get install evince
|
||||||
3. evince filename.pdf
|
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
|
##System
|
||||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||||
|
Loading…
Reference in New Issue
Block a user