Commit Graph

84 Commits

Author SHA1 Message Date
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
Etan Reisner
aa11cc659d Follow variable capitalization on this branch. 2015-04-27 07:30:17 -04:00
Etan Reisner
e2ca2c9550 Add another very common shell variable assignment mistake. 2015-04-26 13:32:41 -04:00
Etan Reisner
9d34629536 Add myself as a contributor. 2015-04-26 13:22:48 -04:00
Sriram Sundarraj
19f6739cba [bash/en] Fixed overflowing line. 2015-04-24 02:36:54 +05:30
Levi Bostian
24a4426dd0 Merge pull request #839 from westurner/patch-1
[bash/en] add bash redirection examples
2014-11-01 13:36:53 -05:00
Wes Turner
e287075690 [bash/en] bash.html.markdown: add bash redirection examples 2014-11-01 12:22:45 -05:00
Wes Turner
112b0b7662 DOC: bash.html.markdown: add bash docs examples 2014-10-30 19:46:37 -05:00
Levi Bostian
01b671bf39 Fix beginning typo from bash 2014-10-17 20:54:45 -05:00
Gregory S. Kielian
d83a0f0385 Changed descriptions, added grep, fgrep examples 2014-10-04 14:50:00 -07:00
Gregory S. Kielian
d22d591e3e amended sed and bash descriptions 2014-09-27 12:12:56 -07:00
Gregory S. Kielian
e9c21740df amended grep description 2014-09-27 12:06:36 -07:00
Gregory S. Kielian
b52a32dd24 Added sed and grep examples to useful-commands 2014-09-27 12:04:25 -07:00