mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 16:56:35 +00:00
edit increment
This commit is contained in:
parent
2226834210
commit
646caf4def
@ -1444,9 +1444,12 @@ cat file.fastq | paste - - - - | sed 's/^@/>/g'| cut -f1-2 | tr '\t' '\n' >file.
|
||||
cat file|rev | cut -d/ -f1 | rev
|
||||
```
|
||||
|
||||
##### Add one to variable/increment a numeric variable (e.g. $var)
|
||||
##### Add one to variable/increment/ i++ a numeric variable (e.g. $var)
|
||||
```bash
|
||||
((var++))
|
||||
or
|
||||
var=$((var+1))
|
||||
|
||||
```
|
||||
|
||||
##### Some handy environment variables
|
||||
|
Loading…
Reference in New Issue
Block a user