Hello!
I think some posted with similar script with mine but can't find it.
I have a directory /home/account with subdirectories looks like
/home/account/user1
user2
user3
in each user directory they have a filename "info.txt". In that info.txt file it contains like this
Name: Jay Byrne
Location : Usa
Education : Undergrad
......
.....
How can I convert that all the info.txt files of each users into one flatfile like
Name|Location|Education
Jay|USA|Undergrad
...|...|....
...|...|....
I think the script should read each directory and open the info.txt and extract each information then read another directory till it reaches end of file right? Anyone who have done this before? plsss
thanks
I think some posted with similar script with mine but can't find it.
I have a directory /home/account with subdirectories looks like
/home/account/user1
user2
user3
in each user directory they have a filename "info.txt". In that info.txt file it contains like this
Name: Jay Byrne
Location : Usa
Education : Undergrad
......
.....
How can I convert that all the info.txt files of each users into one flatfile like
Name|Location|Education
Jay|USA|Undergrad
...|...|....
...|...|....
I think the script should read each directory and open the info.txt and extract each information then read another directory till it reaches end of file right? Anyone who have done this before? plsss
thanks