Skip to content

Commit

Permalink
fix shell script on subsection in getting started on shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Aug 27, 2024
1 parent 95741e1 commit 234134e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mkdocs/docs/HPC/useful_linux_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ $ vi foo
or use the following commands:

```
echo "echo Hello! This is my hostname:" > foo
echo "echo 'Hello! This is my hostname:'" > foo
echo hostname >> foo
```

Expand Down Expand Up @@ -144,7 +144,9 @@ $ which bash
We edit our script and change it with this information:

```bash
#!/bin/bash echo \"Hello! This is my hostname:\" hostname
#!/bin/bash
echo "Hello! This is my hostname:"
hostname
```

Note that the "shebang" must be the first line of your script! Now the
Expand Down

0 comments on commit 234134e

Please sign in to comment.