Hi
Please will somebody write me a bash script to run in Ubuntu.
This is the requirement:-
I have a text file containing a list of names. The number of entries isn't known, it will vary from day to day.
I want to generate another text file containing a reader-friendly report.
The name of the original file is foo1.txt.
The name of the generated file is to be foo2.txt.
The top line of the report is to be a heading Clients.
Then there will be 2 spare lines containing # symbols.
Then there will be a list of clients' names.
In front of each name will be his title Mr.
Following each name will be the letter P to show that he's paid his bill.
At the bottom of the list will be 2 more spare lines containing # symbols.
Then there will be 3 lines of text showing the company's mailing address.
For example:-
foo1.txt
Quote:
Smith
Jones
Harris
Brown
foo2.txt
Quote:
Clients
#
#
Mr Smith P
Mr Jones P
Mr Harris P
Mr Brown P
#
#
Acme Ltd
London
England
Bookmarks