Search Results

Search: Posts Made By: mar85
1,804
Posted By mar85
I think we can do it that way too, but for the...
I think we can do it that way too, but for the sake of learning, just want to know how to use the 'set ARGS1 =(\!1); set ARGS2 =(\!2); properly.
1,804
Posted By mar85
Thanks RudiC for the reply. I'm a newbie in linux...
Thanks RudiC for the reply. I'm a newbie in linux so pardon me if I don't provide enough info. Not sure which shell I'm running but I've run the command:
echo $shell
And here's the output:...
1,804
Posted By mar85
Help on creating and saving an alias
Hello,
I want to create an alias for this command:
grep -i "<keyword_to_search>" <path_to_search>

Here's the alias I intended to make:
alias k 'set ARGS1 =(\!1); set ARGS2 =(\!2); grep -i...
1,260
Posted By mar85
Help in Understanding the tcl proc
proc explore_help {} {
set channel [open "home/scripts/explorer.readme" "r"]
while { [ gets $channel signame ] >= 0 } {
puts "$signame";
}
close $channel
}

Hello,
I need help in...
1,148
Posted By mar85
Thanks bipinajith for helping.. There are...
Thanks bipinajith for helping..
There are slight differences between perl and tcl's regex function in this case. Nevertheless, thanks to your sharing, I think I've figured out the meaning of this...
1,148
Posted By mar85
Problem on understanding the regexp command
Hi all,

I'm not clear of this regexp command:

regexp {(\S+)\/[^\/]+$} $String match GetString

From my observation and testing,
if $String is abc/def/gh

$GetString will be abc/def

I...
937
Posted By mar85
Regarding regexp command
Hello,

I'm reviewing a tcl script, and for this line:

regexp {(\S+)\/[^\/]+$} $string match $catch

if,$string == ab123c/de456f/try99/zxy

is there any possibility that $catch ==...
1,034
Posted By mar85
Is my assumption on the lines are correct? I'm...
Is my assumption on the lines are correct? I'm new to scripting fyi :

"Does the if endif command means, "if there is no variable named "PROJECT_ROOT", then set it to "/proj/proj_123" ?"
1,034
Posted By mar85
Regarding c-shell (csh) scripting
Hi,

I'm reading a csh setup script, and came across these lines:

################################

if (! $?PROJECT_ROOT) then
setenv PROJECT_ROOT /proj/proj_123
endif
...
2,384
Posted By mar85
thanks guys.. the link provided by spacebar is...
thanks guys..
the link provided by spacebar is very helpful for this understanding..
much appreciated`
1,239
Posted By mar85
Thanks guys for the help.. Finally understand...
Thanks guys for the help..
Finally understand the reason
1,239
Posted By mar85
I've test to set the current_name to a string...
I've test to set the current_name to a string with spaces in it,
running both A and B produces the same result with no difference.

Wondering why the writer of the script writes out A instead of...
2,384
Posted By mar85
What about the --> set ARGS =(\!*) what is that...
What about the --> set ARGS =(\!*)
what is that for?
1,239
Posted By mar85
TCL - Question regarding Braces {}
Hello everyone,

What is the difference between these two tcl commands:

(A) --> puts "ERROR!!! ${current_name}/${opt} is not found."
(B) --> puts "ERROR!!! $current_name/$opt is not found."
...
2,384
Posted By mar85
Help to explaining a command in run dot tcl
Hi,

I'm running a rdt (run dot tcl) command, and come accross this line:
alias abc 'set ARGS =(\!*); source home123/abc/$ARGS/setup'

What does the command exactly do?
Please help.
3,173
Posted By mar85
Good explanation, thanks spacebar :b:
Good explanation, thanks spacebar :b:
3,173
Posted By mar85
Question on TCL regexp and match
Hello everyone,
I'm new in tcl scripting.
I'm currently studying a tcl script and came across this line:

regexp {(\d+)(\S?)} $opts match opt swi

According to my understanding, this line...
Showing results 1 to 17 of 17

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