We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent accce12 commit 6c4f32aCopy full SHA for 6c4f32a
README.md
@@ -4800,6 +4800,7 @@ Using the keyword <code>read</code> so for example <code>read x</code> will wait
4800
<details>
4801
<summary>Write a script to determine whether a host is up or down</summary><br><b>
4802
4803
+**EXAMPLE ONE**
4804
```
4805
#!/bin/bash
4806
SERVERIP=<IP Address>
@@ -4817,6 +4818,21 @@ fi
4817
4818
4819
4820
<summary>Write a script to remove all the empty files in a given directory (also nested directories)</summary><br><b>
4821
+
4822
4823
+```
4824
+#! /bin/bash
4825
+for x in *
4826
+do
4827
+ if [ -s $x ]
4828
+ then
4829
+ continue
4830
+ else
4831
+ rm -rf $x
4832
+ fi
4833
+done
4834
4835
4836
</b></details>
4837
4838
<a name="shell-scripting-advanced"></a>
0 commit comments