How to read data from keyboard and store it in a file, shellscript
Posted
by Sunil Kumar Sahoo
on Stack Overflow
See other posts from Stack Overflow
or by Sunil Kumar Sahoo
Published on 2010-04-07T09:49:19Z
Indexed on
2010/04/07
9:53 UTC
Read the original article
Hit count: 543
shell-script
|linux
Hi I have a file try.SPEC. This file contains a word "Version: 1.0.0.1" . Now I want to write a shell script which will read the version number from keyboard and insert in the file. eg- if the user enters the version number as 2.1.1.1 then the file will have Version: 2.1.1.1" instead of "Version: 1.0.0.1". like this i want that i must be able to change irrespective of knowing what is the version number present in the spec file
Thanks Sunil Kumar Sahoo
© Stack Overflow or respective owner