https://github.com/kshrikant7/shell-script-assignment
https://github.com/kshrikant7/shell-script-assignment
shell-script
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kshrikant7/shell-script-assignment
- Owner: kshrikant7
- Created: 2023-10-16T13:14:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T06:04:25.000Z (over 1 year ago)
- Last Synced: 2025-02-01T07:44:23.443Z (4 months ago)
- Topics: shell-script
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shell-Script-Assignment
Write a shell script to change the values in a file(i.e sig.conf) according to the input passed to the script. The script should ask for all four inputs from the user & also validate the input.
Below are the details of input. In full bracket options are given, you have to restrict the user pass single value for each input from the provided options in the full bracket.
Input:-
1) Component Name [INGESTOR/JOINER/WRANGLER/VALIDATOR]
2) Scale [MID/HIGH/LOW]
3) View [Auction/Bid]
4) Count [single digit number]
Explanation of a conf file line.
view ; scale ; component name ; ETL ; vdopia-etl= count
Note:- vdopiasample stands for Auction & vdopiasample-bid is for Bid
The script should change the values in the file according to the input provided. At a time only one line of the conf file should be altered.