Search Results

Search: Posts Made By: iskatel
9,059
Posted By iskatel
Thanks, this combination of quotes/escapes worked!
Thanks, this combination of quotes/escapes worked!
9,059
Posted By iskatel
need to enclose a string in quotes
I have a script which I call and pass a text string to it. This string is then is assigned to a variable in the script. I then call another script and pass that variable to the second script, but...
4,702
Posted By iskatel
Sorry for not being clear. I'm trying to create a...
Sorry for not being clear. I'm trying to create a wrapper script that will call either script1 or script2 depending on what option users select on command line when calling my script. One more input...
4,702
Posted By iskatel
my goal is to call another script within my...
my goal is to call another script within my script which will look like

COMMENT="To test my script"
CMD="./anotherscript.sh -c \"$COMMENT\""
$CMD
I need my $COMMENT variable to expand properly...
4,702
Posted By iskatel
csh and variable values with spaces
my working shell is csh and even though if I try to run my script in plain sh, it behaves the same way. Here's a simple script:

#!/bin/sh
desc='"test my changes"'
cmd="echo \"$desc\""
$cmd
I...
3,140
Posted By iskatel
Sorry for not being clear! Here's the sample run...
Sorry for not being clear! Here's the sample run of an external command which I need to call within my script and its output:

When I run this command in my script, I want to be able to parse the...
3,140
Posted By iskatel
The keywords will be static and defined in the...
The keywords will be static and defined in the script. The output I've quoted earlier will be generated by some command which I call in my script and I want to be able to capture and parse the...
3,140
Posted By iskatel
I need to capture and list each line that...
I need to capture and list each line that contains a matching keyword. I think grep will handle only one case form the output, no?
3,140
Posted By iskatel
This is the output of a tool command that I run :...
This is the output of a tool command that I run :

The flow should be like this: I run an external tool command and I parse its output for certain keywords. If there's a match of keywords, then I...
3,140
Posted By iskatel
Agreed. I will incorporate my error checking...
Agreed. I will incorporate my error checking within myscript.sh. Meanwhile any suggestions on writing the awk code to filter out the keywords? In the output example above I want to be able to read...
3,140
Posted By iskatel
awk/sed line parsing
I'm new to shell programming, but I think I learn best by following an example. I'm trying to cook up an awk/sed script, but I obviously lack the required syntax skills to achieve it. The output...
Showing results 1 to 11 of 11

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