SEC‐252BashScripting - ConnorEast/Tech-Journal GitHub Wiki
Deliverable 1:
Deliverable 2:
Command Used: " awk -F '[:]' '{print "System Users: " " ---> File Location: " }' /etc/passwd "
Installing Tree Command using Yum:
"yum -y install tress"
Deliverable 3:
Deliverable 4:
The first part of the Script above translates to "Lets create a variable known as nslookup1/2/3/4 where each is equal to the content of it respective command 'nslookup' for each server listed (FW, Web, AD, FS)" 1 being FW, 2 being web, 3 being AD, and 4 being fs.
The second part of the script translates too "Using the string stored in $nslookup1/2/3/4, print out the 8th variable and 6th variable." It is able to determine this based on whitespace. Below is how said code prints.
Deliverable 5:
In the following document I have added a search functionality so that if you type in the specified address of a server, its name appears. This works by using taking only the 8th value from my nslookup command and then comparing it to the number that appeared. Below is the script image