nani123nani
Programmer
Hi guys,
I am very new to the shell scripting ....
I have a text file with 4 columns and all colums are seperated by some space ...
My text file is like ..................
------------------------------------------------------------
FirstName
LastName
PhoneNumber Group
------------------------------------------------------------
David
Ked 345-234-
1234 Dba
Edward
Nas
234.123.5673 WDS
Sdert
Fuji 91 23
45678 ABC
serty
asder 01 34 456
345678978 KLS
cderfg
Sddd 123
345 VBC
Asasasasas
QWER 2154-589-
9656 asd
------------------------------------------------------------
I need to store parse above file like need to store all individual information in seperate attributes.
I need to capture individual information, such as firstname . second name, ph number and group in seperate fileds. I tried by CUT command, since some of phone numbers having spaces in between , I am not able to capture phone numbers properly.
Can some one help me How to capture phone numbers and also other informations.
I appreciate your help!
Thanks in advances ....
I am very new to the shell scripting ....
I have a text file with 4 columns and all colums are seperated by some space ...
My text file is like ..................
------------------------------------------------------------
FirstName
LastName
PhoneNumber Group
------------------------------------------------------------
David
Ked 345-234-
1234 Dba
Edward
Nas
234.123.5673 WDS
Sdert
Fuji 91 23
45678 ABC
serty
asder 01 34 456
345678978 KLS
cderfg
Sddd 123
345 VBC
Asasasasas
QWER 2154-589-
9656 asd
------------------------------------------------------------
I need to store parse above file like need to store all individual information in seperate attributes.
I need to capture individual information, such as firstname . second name, ph number and group in seperate fileds. I tried by CUT command, since some of phone numbers having spaces in between , I am not able to capture phone numbers properly.
Can some one help me How to capture phone numbers and also other informations.
I appreciate your help!
Thanks in advances ....