- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Modifying CONFIG-SPECS using shell scrip
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 01:01 AM
08-04-2004 01:01 AM
Modifying CONFIG-SPECS using shell scrip
I want to write a shell script to modify
config-specs of clearcase
how should I go about it and
there is an entry
MAP_014
i want to ask user whether he wants to
update this if the user gives new number
say 15 then my script should update it to
MAP_015
How should i do that ?
Thanks,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 01:09 AM
08-04-2004 01:09 AM
Re: Modifying CONFIG-SPECS using shell scrip
read number?"Input number>"
typeset -Z3 value=$NUMBER
param=MAP_"$value"
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 01:37 AM
08-04-2004 01:37 AM
Re: Modifying CONFIG-SPECS using shell scrip
Following is my script
echo "Enter the New Release Module
Number For MAP :"
read mapno
typeset -Z3 value=$mapno
param=MAP_"$value" >>config-specs
Below is the config-specs file
MAP_014
RPR_013
LRP_010
But it doesnt work
Thanks,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 03:53 AM
08-04-2004 03:53 AM
Re: Modifying CONFIG-SPECS using shell scrip
Then do it as,
echo "Enter the New Release Module
Number For MAP :"
read mapno
echo "`sed -e 's/_[0-9]*/_0'$mapno'/g' config-specs" > config-specs
Example:
if mapno=16
cat config-specs
MAP_014
RPR_013
LRP_010
mapno=16
sed -e 's/_[0-9]*/_0'$mapno'/g' config-specs
MAP_016
RPR_016
LRP_016
Above script will automatically update your file with out using temporary file
Or using perl as,
perl -p -i -e 's/_[0-9]*/_0'$mapno'/g' config-specs
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2004 12:37 AM
08-07-2004 12:37 AM
Re: Modifying CONFIG-SPECS using shell scrip
I have created the script to update the
release number.
I want to uncomment those modules which are
updated.
Eg when i run my script it display menu
like this
Enter the module number to update
1. M1 2. M2 3. M3 4. M4
Based upn the choice and new number
entered the module is updated
but my config-specs files looks like
this
#MAP_015
#RPR_016
I want when a module is update along with
updation of number i uncomment the same
line...
Please helllpppppppppp...
Thanks,
Amit