14

Alter a part of a line specified by user

view full story
linux-howto

http://www.unix.com – How can I adjust a specific field in a line that the user specifies... In other words, I have a file that contains several lines containing several fields separated by a comma. Code: (name),(address),(ph. number) I want to ask the user which record he wants to adjust based on the name. However, I want to be able to change the number only. Code: echo "Which record?" read record Then I have no idea how to figure out the next step. Any help? (HowTos)