Search Results

Search: Posts Made By: zambo
6,279
Posted By zambo
Actually could have something like: WHEREIAM=...
Actually could have something like:
WHEREIAM= `echo $WHEREIAM | command`
where command(using sed, awk, ...) will replace all environment variables by their value within the shell so that in my...
6,279
Posted By zambo
echo "$WHEREIAM" gives /tmp/$SITE/location/$LEVEL...
echo "$WHEREIAM" gives /tmp/$SITE/location/$LEVEL instead of as I would have expected /tmp/here/location/dev
6,279
Posted By zambo
String manipulation using ksh
I have a UNIX shell where:
LEVEL=dev
SITE=here
and WHEREIAM=/tmp/$SITE/location/$LEVEL

I want to echo $WHEREIAM in such a way that I get it back with all the environment variables resolved...
9,217
Posted By zambo
Extract a line from a file using the line number
I have a shell script and want to assign a value to a variable. The value is the line exctrated from a file using the line number. The line number it is not fix, and could change any time.
I have...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy