Commit Graph

96 Commits

Author SHA1 Message Date
Michael Chen
6467d88012
[bash/en] More details about pipe and redirection (#4119)
* Update bash.html.markdown

* More details about pipe and redirection
2022-01-04 01:02:22 +08:00
Michael Chen
5f118e3f61
[bash/en] Add info on background commands with & (#4120)
* Add info on background commands with &

* Update bash.html.markdown
2022-01-04 01:00:53 +08:00
Michael Chen
3b2974ba31
Clarify that "sort" doesn't modify the file (#4121) 2022-01-04 01:00:05 +08:00
MarkGrimwood
4eaafe0839
[bash/en] Update bash.html.markdown (#4202)
Additional info on arguments and return values for functions
2021-08-22 20:15:03 +02:00
Lilian Besson
ba2901a342
[bash/en] Small updates
- I added https:// for the links, it's 2021, http:// is dead
- fixed two comments which where `#text` => `# text` for consistency
- added a link to `trash-cli` Python package which provides `trash` as a "safe" alternative to `rm`
- add warning that `sed -i` erase (replace) the input file
- add `...` around fgrep and grep -F, for consistency too
2021-01-29 12:56:11 +01:00
kevinnls
211ec4f50b
removed MacOS from intro
MacOS no longer ships bash as the default shell
2020-08-01 21:24:19 +05:30
Max Schumacher
1d829ae3f9
Merge pull request #3906 from lemonez/patch-1
[bash/en] fix small omission
2020-07-07 12:39:53 +02:00
oliv37
7f1dc6ce2b fix typo bash.html.markdown 2020-05-26 18:13:38 -07:00
oliv37
6955861bba Add indirect expansion in bash.html.markdown 2020-05-26 18:13:38 -07:00
lemonez
fb76c0b7fe
fix small typo
pass -e flag to echo to interpret escape characters correctly
2020-04-16 17:37:30 -07:00
Dimitri Kokkonis
e8dd50b85e [bash/gr] Translate Bash to greek (#3595)
* Add greek translation for the HTML language

* Correct typo in source file name

* Translate Bash to greek
2019-08-10 23:26:02 +05:30
Andre Polykanine
4a51a5f879 [bash/en] Fix line length 2018-12-24 00:59:11 +02:00
Divay Prakash
4a7d678c25
Merge branch 'master' into master 2018-10-24 11:04:05 +05:30
Divay Prakash
6cfd618df3
Merge pull request #3249 from heyitswither/fix-substring2
[bash/en] clarify range of substring
2018-10-03 09:54:42 +05:30
Divay Prakash
662131f8a1
Merge pull request #3248 from heyitswither/fix-cd2
[bash/en] add `cd` and `cd -` uses
2018-10-03 09:51:32 +05:30
Tucker Boniface
9152fe00e5
[bash/en] clarify range of substring 2018-10-02 20:20:06 -07:00
Tucker Boniface
843626f3d3
[bash/en] add cd and cd - uses 2018-10-02 19:41:43 -07:00
Tucker Boniface
088111396a
[bash/en] clarify quoted delimiter for heredocs (fixes #3061) 2018-10-02 19:19:18 -07:00
Adam Bard
ef105ab9e7
Merge pull request #3167 from archatas/patch-1
shebang updated
2018-08-24 12:58:41 -07:00
Aidas Bendoraitis
6f0aec01c5
shebang updated 2018-07-25 23:58:31 +02:00
kfrncs
dbb858281a
missing $ on line 77 - $Length
Maybe just a zsh quirk? 

➜  ~ echo ${Variable:0:Length} 
zsh: unrecognized modifier
2018-07-20 14:38:59 -04:00
Martin Nicholson
e2949649f0 Un-markdown-ify link 2018-01-16 16:09:49 +00:00
Martin Nicholson
8d2055483e Added section for =~ operator 2018-01-16 16:03:13 +00:00
Martin Nicholson
462f94b967 Added string length example 2018-01-16 15:31:32 +00:00
Martin Nicholson
f39df1da09 Added second substring example 2018-01-16 15:27:30 +00:00
Neinei0k
2dda26010a
[bash/en] Add arrays and alias 2017-11-14 19:30:57 +00:00
Joyce Kung
027e152dda Fixed line 59 - printing
Using echo with ' ' means that the variable won't be expanded, so it should print the literal $Variable instead of some string.
2017-10-13 12:10:32 -04:00
Harry Mumford-Turner
4f86cfaa44 [bash/en] Fixed formatting for The Black Hole
- [x] I solemnly swear that this is all original content of which I am the original author
- [x] Pull request title is prepended with `[language/lang-code]`
- [x] Pull request touches only one file (or a set of logically related files with similar changes made)
- [x] Content changes are aimed at *intermediate to experienced programmers* (this is a poor format for explaining fundamental programming concepts)
- [x] If you've changed any part of the YAML Frontmatter, make sure it is formatted according to [CONTRIBUTING.md](https://github.com/adambard/learnxinyminutes-docs/blob/master/CONTRIBUTING.markdown)
  - [x] Yes, I have double-checked quotes and field names!
2017-10-02 14:10:53 +01:00
Keith Miyake
96f62560ba [bash/en] Provide example outputs for #549 2017-09-29 09:09:39 -07:00
Rholais Lii
303de42a2c [bash/en-us]Fix spelling (#2654)
* Fix spelling

* Remove the contributor tag
2017-02-12 16:06:21 +01:00
Remigiusz Suwalski
9b2da09365 Removed excessive dollar signs (#2447)
There is no $ when one referencec the name of a variable as Bash is not PHP.
2016-10-13 08:25:44 +02:00
Tim Heaney
81975893a7 Reword pwd comments (#2402)
Getting is redundant.
Observe, not observer.
2016-10-02 19:16:12 +02:00
Isaac Virshup
527eab7108 [bash/en] Remove link unavailable resource (#2372) (#2373)
Link pointed to a book which was not released. Fixes #2372.
2016-09-16 09:53:18 +02:00
Leo Rudberg
b16c7ee2d8 [bash/en] Addition to bash (#2302)
* Added bash intro edits

* Fixed page header

* Finalizing updates

Implemented my changes in the main bash code chunk instead of as an out-of-code prologue

* Final touches

* Added citation for John and mkdir content

* Added removed original intro back in

* Update bash.html.markdown

Moved "hard way" link to top of article

Fixed spacing

Grouped `rm` commands

* Fixed typos
2016-07-10 09:04:08 +02:00
Jonathan Wang
8cd7c230aa [bash/en] basic parameter expansion, and brace expansion (#1533)
* Added brace expansion as well as basic parameter expansion

* frogot my name

* Update bash.html.markdown

 Added to parameter expansion
2016-06-26 15:04:11 +02:00
Sachin Divekar
d1216a4253 Add an example of trap command (#1826)
* Begin writing document for PCRE

Started writing learnxinyminutes document for PCRE to cover general purpose regular expressions. 
Added introduction and a couple of details.

* Change introductory example for regex

The old example was incorrect. It's replaced with a simple one.

* Add some more introductory text

* Add first example

* Added more example and a table for proper formatting

* Add few more examples

* Formatting

* Improve example

* Edit description of character classes

* Add a way to test regex

Add https://regex101.com/ web application to test the regex provided in example.

* Add example of trap command 

trap is a very important command to intercept a fatal signal, perform cleanup, and then exit gracefully. It needs an entry in this document.

Here a simple and most common example of using trap command i.e. cleanup upon receiving signal is added.

* Revert "Add example of trap command"

* Add an example of trap command

`trap` is a very important command to intercept a fatal signal, perform cleanup, and then exit gracefully. It needs an entry in this document.

Here a simple and most common example of using `trap` command i.e. cleanup upon receiving signal is added.
2016-06-26 14:38:05 +02:00
Viren Nadkarni
4e5439c21f Fix a mistake in fgrep example (#2254) 2016-05-12 13:07:50 +02:00
ven
60be912428 Merge pull request #1636 from viv1/patch-2
[bash/en]...Added info on changing directories
2016-03-11 09:37:29 +01:00
Matteo Baglini
f94dea8379 Use proper string comparison syntax 2016-01-12 00:32:03 +01:00
viv1
5c8942f7bc [bash/en]...Added info on changing directories 2015-10-19 02:50:55 +05:30
Awal Garg
f402205247 [bash/en] use $var with quotes in conditions 2015-10-14 21:10:28 +05:30
Gabriel Halley
960ee4a185 removing whitespace all over 2015-10-07 23:11:24 -04:00
ksami
acc9a73c01 [bash/en] Improved descriptions 2015-10-02 22:08:27 +08:00
Liam Edwards-Playne
de676b62b8 fixed spelling error 2015-05-26 11:25:07 +10:00
Liam Edwards-Playne
8909457ae4 fix spelling errors 2015-05-20 11:23:55 +10:00
Levi Bostian
e4c2615675 Fix issue with referring to "output.txt" but examples use "output.out"
Fixes https://github.com/adambard/learnxinyminutes-docs/issues/1095
2015-05-11 21:20:02 -05:00
Etan Reisner
8b7a2fff9a Don't use ALL_CAPS variable names.
ALL_CAPS variable names are traditionally "reserved" for use by the
shell/system.

(People often try to use PATH for things locally and then wonder why their
commands all stop working for example.
2015-05-07 21:07:35 -04:00
Levi Bostian
7bc99fcaf4 Merge pull request #1080 from kryzhovnik/bash/clear-variable-default-value
Clear explanation of default value expression
2015-05-02 20:55:53 -05:00
Andrey Samsonov
6848f45ebe Clear explanation of default value expression 2015-05-02 16:21:03 +04:00
Andrey Samsonov
8758bb845b Clear that length and position can be set by variable in substring extraction 2015-05-02 15:34:56 +04:00