We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b181c69 commit 3f0d9dfCopy full SHA for 3f0d9df
.gitignore
@@ -0,0 +1,3 @@
1
+*.txt
2
+.DS_Store
3
+.vscode/
README.md
@@ -1 +1,3 @@
-bash_stuffs
+Some helpful bash scripts for my personal use
+
+I love JS so I was tempted to find a JS friendly terminal however there is just something so cool about bash scripting!
docker_kill_all.sh
@@ -0,0 +1,20 @@
+# This script kills all active Docker containers.
+# Use with care!
4
+# This strips the Header
5
+docker ps | grep [a-e0-9] > docker.txt
6
7
+# Just grab container ID
8
+awk '{print $1}' docker.txt > docker_ids.txt
9
10
+while read DOCKER_ID
11
+ do docker kill "$DOCKER_ID"
12
+done < docker_ids.txt
13
14
+# clean up created resources
15
+rm docker.txt
16
+rm docker_ids.txt
17
18
+echo "DONE..."
19
20
+docker ps
0 commit comments