Xqtftqx
October 26th, 2009, 10:52 PM
Hello, im working on a small bash script project. I need some help on doing the following task:
Say i have this in a file:
Name: John
Age: 54
Name: Jamie
Age: 53
Name: Kody
Age: 23
I know i can output all the names by doing "grep "Name:" File.txt
But How could i make my program output this:
Name: John, 54
Name: Jamie, 53
Name: Kody, 23
Any Help would be appreciated thank you
Say i have this in a file:
Name: John
Age: 54
Name: Jamie
Age: 53
Name: Kody
Age: 23
I know i can output all the names by doing "grep "Name:" File.txt
But How could i make my program output this:
Name: John, 54
Name: Jamie, 53
Name: Kody, 23
Any Help would be appreciated thank you