Search Results

Search: Posts Made By: by_tg
4,756
Posted By by_tg
does that just echo, or does it update $StringA?
I'm interested in modifying the parameter's value. Does that change the string or just show the output?
4,756
Posted By by_tg
#!/bin/sh script fails at StringA | tr "[x]" "[y]"
I need to take a string (stringA) check it for spaces and replace any spaces found with an equal (=) sign.

This is not working. There are spaces between each component:
$StringA | tr "[ ]" "[=]"...
102,336
Posted By by_tg
#!/bin/sh error: (variable content) This is not an identifier.
relevant code:
#!/bin/sh

... NOTE: I am accepting parameters passed from Oracle Apps:
relevant code:
var1=$1
var2=$2
var3=$3
ReqID=$4

... NOTE: Displayed parameters are correct when...
8,276
Posted By by_tg
Trouble with UNIX tr (translate) function
UNIX script - problem.

I want the spaces in my Item variable to be replaced with a question mark. Can you tell me what I am doing wrong? This is the whole code line.

Item | tr -s " " "?"
...
Showing results 1 to 4 of 4

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