From 234134e1348d945caea4669d7315a3e9cb28af27 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Tue, 27 Aug 2024 18:33:04 +0200 Subject: [PATCH] fix shell script on subsection in getting started on shell scripts --- mkdocs/docs/HPC/useful_linux_commands.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkdocs/docs/HPC/useful_linux_commands.md b/mkdocs/docs/HPC/useful_linux_commands.md index afaa87575e9..ca46324d81f 100644 --- a/mkdocs/docs/HPC/useful_linux_commands.md +++ b/mkdocs/docs/HPC/useful_linux_commands.md @@ -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 ``` @@ -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