![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Both HOME and INSERT key send same escape sequence on ssh | grossgermany | UNIX for Dummies Questions & Answers | 0 | 07-27-2007 07:12 PM |
| want to view the escape sequence | sweta | UNIX for Advanced & Expert Users | 4 | 10-09-2006 10:20 AM |
| Available escape sequences | Love | SUN Solaris | 6 | 06-20-2006 07:31 AM |
| Escape sequence | puspendu | Shell Programming and Scripting | 4 | 02-08-2006 02:14 AM |
| What is "escape sequence" in tcsh on Solaris | modemer | UNIX for Advanced & Expert Users | 2 | 02-15-2005 05:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Hi.
Quote:
There is a way that the look of your requirement can be done -- essentially as an indirect assignment: Code:
#!/bin/bash - # @(#) z1 Demonstrate indirect assignment. echo a=0 b=1 a=b echo " first assignment a = $a, b = $b" echo $a=2 echo " second assignment a = $a, b = $b" echo eval $a=2 echo " eval assignment a = $a, b = $b" exit Code:
% ./z1 first assignment a = b, b = 1 ./z1: line 12: b=2: command not found second assignment a = b, b = 1 eval assignment a = b, b = 2 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|