Skip to content

Commit

Permalink
24sep
Browse files Browse the repository at this point in the history
  • Loading branch information
Tripura kant committed Sep 24, 2023
1 parent 69629b0 commit d54def2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample-scripts/1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/bash

java -version
docker --version
16 changes: 16 additions & 0 deletions sample-scripts/2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

dockerVersion="$(docker --version | cut -d ' ' -f 3 | tr -d ,)"

ansibleVersion="$(ansible --version | awk 'NR==1 {print $3}' | tr -d ])"

echo "Docker version: $dockerVersion"

echo "Ansible version: $ansibleVersion"


echo "--------------------------------------------------------------"
echo "| Tool Name | Version |"
echo "--------------------------------------------------------------"
echo "| Docker | ${dockerVersion} |"
echo "| Ansible | ${ansibleVersion} |"
echo "--------------------------------------------------------------"
5 changes: 5 additions & 0 deletions sample-scripts/3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/bash

read -p "Enter a terminal: " terminal

echo "The terminal is ${terminal}."
Empty file added sample-scripts/4.sh
Empty file.
Empty file added sample-scripts/5.sh
Empty file.
Empty file added scripts-example
Empty file.

0 comments on commit d54def2

Please sign in to comment.