Skip to content

Commit 8da1a9f

Browse files
author
Ankam Ravi Kumar
authored
Create ifs.sh
Internal Field Seperator
1 parent c75b626 commit 8da1a9f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ifs.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
#Purpose: Internal Field Seperator
3+
#Version:1.0
4+
#Created Date: Wed Jun 13 21:58:18 IST 2018
5+
#Modified Date:
6+
#WebSite: https://arkit.co.in
7+
#Author: Ankam Ravi Kumar
8+
# START #
9+
LINE=`cat /etc/passwd |grep $1`
10+
IFS=:
11+
set $LINE
12+
echo "User Name = $1"
13+
echo "Password = $2"
14+
echo "UID = $3"
15+
echo "GID = $4"
16+
echo "Description = $5"
17+
echo "Home Directory = $6 "
18+
echo " Current Shell = $7"
19+
20+
# END #

0 commit comments

Comments
 (0)