Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedsami76 committed Aug 9, 2023
1 parent c7f9a92 commit 3e7d804
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions linux.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,23 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"`$ <variable>=<value>` -- Example $ var01=2304 -- No spaces\n",
"`$ var01=test` \n",
"`$ var02='this is a \\n multiline variable'` \n",
"`$ echo $var01` \n",
"`$ echo ${var01}` -- another way to print the value \n",
"`$ echo $var02` \n",
"`$ echo -e $var02`"
"`$ <variable>=<value>` \n",
"`$ var01=test` \n",
"`$ var02='this is a \\n multiline variable'` \n",
"`$ echo $var01` \n",
"`$ echo ${var01}` -- another way to print the value \n",
"`$ echo $var02` \n",
"`$ echo -e $var02` "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Setting variables to command results** \n",
"`<variable>=$(<command>)` \n",
"`$ hname=$(hostname)` \n",
"`$ echo $hname`\n"
]
},
{
Expand All @@ -289,11 +299,6 @@
"`$ export`"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -449,11 +454,6 @@
"- Now you should be able to see both lines coming from `/etc/profile` and `~/.bashrc` files "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 3e7d804

Please sign in to comment.