Power Of Bash Shell Scripting

Toseef Ahmad
1 min readApr 22, 2021

--

In 2021 Computer Science is Still Growing, and expending own circle in the world!. And Automation is a Part of that thing, which human Want to Computer Science. As we remember First Computer has a capability to solve just simple Math + — / * operations, But now we cannot imagine. Why Computer is our Hero, because computer do our task and dont say, i am ill, i am tired, i am going to sleep, for that habits, human likes computer and human take care of computer like a mother. There is a Thing called Bash,

what is Bash, this a Computer Language to Automate Computer task, it is natively Linux Language, which runs a lot of commands, just in one file Called .sh, i will show you how write bash and how it works, so lets me show you how its is.!

Suppose, i have a file which contains a lot of IP address, and server name and time. But i need just ip addressed from this list.

so lets write a Bash Script for extracting IP addresses.

#! /bin/bash

path=/etc/passwd
if [ -e $path ]
then
for ip in `awk -F: ‘{print $1}’ /etc/passwd`
do
echo $ip
done
fi

--

--

Toseef Ahmad
0 Followers

Hy, i'm ReactJS Front End Developer And CYBER SECURITY Export. i love Computer Science!