Update README.md

This commit is contained in:
onceupon 2017-12-12 10:58:22 +08:00 committed by GitHub
parent 722c78f339
commit 83a7ff99be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,12 +447,6 @@ awk 'BEGIN{OFS="\t"}$3="chr"$3'
awk '!/bbo/' file
```
##### Column subtraction
```bash
cat file| awk -F '\t' 'BEGIN {SUM=0}{SUM+=$3-$2}END{print SUM}'
```
##### Usage and meaning of NR and FNR
e.g.
fileA:
@ -823,6 +817,18 @@ for line in $(cat myfile); do echo $line; read -n1; done
```bash
factor 50
```
##### Sum up input list (e.g. seq 10)
```bash
seq 10|paste -sd+|bc
```
##### Column subtraction
```bash
cat file| awk -F '\t' 'BEGIN {SUM=0}{SUM+=$3-$2}END{print SUM}'
```
##### Simple math with expr
```bash
@ -852,6 +858,7 @@ echo "var=5;--var"| bc
## Download
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
##### Download all from a page
@ -1364,12 +1371,6 @@ echo $input
seq 10
```
##### Sum up input list (e.g. seq 10)
```bash
seq 10|paste -sd+|bc
```
##### Find average of input list/file
```bash