Matilde Bravo
8646bb2c89
Updated description for arguments section ( #1620 )
2021-02-18 17:56:44 +11:00
DJCrashdummy
8747708136
bash: Correct mistakes at $RANDOM ( #1147 )
...
- using `=` just throws an error!
- `200` limits the result to 200 possible numbers starting with 0! so the maximum is 199.
- added `$` straight before `RANDOM` to be on the safe side.
2020-08-03 22:31:11 +10:00
Rico Sta. Cruz
c792f1b418
Add introduction sections ( #1497 )
2020-07-06 00:38:31 +10:00
Rico Sta. Cruz
6b43bf97da
Cleanup: update timestamps
2020-07-05 21:11:36 +10:00
hyww
a54b580e01
bash: Fix substring expansion with negative offset ( #947 )
...
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-07-05 21:04:28 +10:00
Rico Sta. Cruz
360bb87287
Cleanup: update timestamps of files
2020-07-04 23:33:09 +10:00
Rico Sta. Cruz
d4e3421ac6
Format: update some table formatting
2020-07-04 23:29:16 +10:00
Zeebrommer
87ed01b739
Bash: add `else` example ( #1484 )
...
I always forget if `else` is to be followed by a `;` or not. Add it to the conditionals chapter where I would expect it.
2020-07-03 00:45:04 +10:00
Petr Heinz
3a918a1619
bash: expanded working with arrays ( #534 )
2020-06-24 00:23:07 +10:00
Rico Sta. Cruz
214a4ed82e
Merge pull request #1462 from kozhemyak/patch/add-bash-lastindex
...
Add a way to get the last element
2020-06-17 23:22:27 +10:00
Rico Sta. Cruz
ae18baa7e9
Merge pull request #1383 from zhumengu/master
2020-06-14 23:55:27 +10:00
Rico Sta. Cruz
d5683a9ddf
Update bash.md
2020-06-14 23:54:47 +10:00
Rico Sta. Cruz
242c5bccbf
Merge pull request #1397 from rajinder-yadav/patch-1
2020-06-13 10:16:20 +10:00
Rico Sta. Cruz
d0381c2254
Update bash.md
2020-06-13 10:16:14 +10:00
Rico Sta. Cruz
a78a39538b
Merge pull request #1402 from TaylorPzreal/patch-1
2020-06-13 10:15:22 +10:00
Rico Sta. Cruz
aa8c2632d7
Update bash.md
2020-06-13 10:15:03 +10:00
Rico Sta. Cruz
bf22b55008
Update bash.md
2020-06-13 10:11:51 +10:00
Nikolay Kozhemyak
cd02419737
Add a way to get the last element
2020-06-12 21:10:54 +06:00
Angus Hollands
0361fa173b
Update bash.md
2020-04-20 11:21:31 +01:00
Angus Hollands
7a2322761a
Fix nullity checks for parameter expansion
2020-04-20 10:19:52 +00:00
TaylorPzreal
42df935e43
Update bash.md
...
Substring from the right should include __parentheses__
2020-04-07 08:45:15 +08:00
Rajinder Yadav
3d839093e9
Correct conditions, removed superfluous brackets
2020-04-01 07:44:50 -04:00
zhumengu
ef9f00aa5c
parent directory example
2020-03-14 15:08:20 +08:00
Alexander Berezovsky
d0da7addd5
Add bash $_ last argument of the previous command
2020-02-20 12:11:57 -08:00
Matthew Pfeiffer
0b8a65c575
bash: fix line reading example
...
`< file.txt | cmd` only works in zsh, not bash (as of bash 5.0.11).
2020-01-24 21:07:10 -05:00
Rico Sta. Cruz
2906fc9c6e
Merge pull request #1238 from btandersen383/patch-1
...
Fix if regex match
2020-01-01 10:05:33 +11:00
Behnam Esfahbod ❄
f7a365b23d
Update bash.md
...
Use `shopt -s` for setting Bash-specific options.
2019-11-30 14:07:21 -08:00
Rico Sta. Cruz
7813be2238
bash: Move examples to the bottom
2019-11-17 17:15:12 +11:00
Beathan Andersen
c5006cfd4f
fix if regex match
...
The regex string should not have any quotes around it. To validate test:
$ if [[ "A" =~ . ]]; then echo pass; else echo fail; fi
with and without quotes
2019-10-16 13:52:50 -05:00
Rico Sta. Cruz
7bc7228728
Fix extra fences
2019-10-15 20:30:00 +11:00
Michael King
f1a7af534f
update metadata
2019-10-04 17:26:14 -04:00
Michael King
8843c62e6d
add the $0 special variable to bash.md
2019-10-02 11:27:23 -04:00
Nicholas Chen
0655d01d62
Updating printf functions
...
Updating printf functions to print numbers and floats.
2019-09-18 21:41:04 -04:00
xvazquezc
b3e81e0da9
upper/lowercase manipulation
2019-07-05 15:30:00 +10:00
Rico Sta. Cruz
a6cc2eade2
Update bash.md timestamp
2019-03-23 22:32:39 +08:00
Rico Sta. Cruz
34839f27d8
Merge branch 'pr-998'
2019-03-23 22:26:48 +08:00
Rico Sta. Cruz
8ea2be4731
Update formatting
2019-03-23 22:26:44 +08:00
Rico Sta. Cruz
2349f623c2
Fix formatting
2019-03-23 22:10:27 +08:00
Gabriel Petry
57c49cd8aa
add c-like for loop
2019-02-22 07:30:15 -03:00
Edson Ticona
69f50888f4
Adds associative array usage
2019-01-20 13:18:13 +01:00
Rico Sta. Cruz
c65dc4811d
Merge pull request #634 from moviuro/patch-1
...
Update bash.md
2018-12-25 20:39:07 +08:00
Rico Sta. Cruz
79384c2e24
bash: Update timestamp
2018-12-25 20:34:40 +08:00
Moviuro
0b74fe127d
Merge branch 'master' into patch-1
2018-12-20 11:39:41 +01:00
hrvoj3e
8365f5e761
slicing from right
2018-12-02 11:37:15 +01:00
chad d
bb00a53532
Clean up from PRs
2018-11-19 23:18:50 -07:00
Michael Hienle
6107936ac2
Add info about !!, !^, !$ ( #844 )
...
* Add info about !!, !^, !$
* Do not use example with sudo
2018-11-19 14:09:09 -07:00
Seth
898c8d904b
Bash correction ( #922 )
...
* fix bash path split example
* add two string equality and example
2018-11-16 13:08:34 -07:00
Paul Cathey
6164a16f57
Adds simpler push for bash array ( #894 )
...
Here is a less verbose push than the one listed
2018-11-16 12:58:15 -07:00
Michael Hienle
2bef29186d
Add cd - ( #843 )
2018-11-07 15:54:57 -07:00
haider
0804754a91
Added 2 String Comparison Conditionals ( #769 )
...
they check to see if the strings are equal or not...
Just thought its an essential comparison that should be in the cheatsheet.
2018-11-07 14:59:09 -07:00