Search Results

Search: Posts Made By: ajitkumar2
6,026
Posted By ajitkumar2
callenge to masters
say i need to run the script OTP_Extract.sh that require some command line args eg -

$OTP_Extract.sh -v '" 0"' -m DAILY

-v is to passes " 0" to this. number of spaces around 0...
6,026
Posted By ajitkumar2
Thanks for the reply. But That is not the case ...
Thanks for the reply.
But That is not the case
say i need to run the script OTP_Extract.sh that require some command line args eg -

$OTP_Extract.sh -v '" 0"' -m DAILY

-v is to...
6,026
Posted By ajitkumar2
The problem is , this scripts have to generic ,,...
The problem is , this scripts have to generic ,, I' won't know what argument will be coming ..so won't able \ to escape..

Thanks for ur reply Frank!!

Is there any other way ...
6,026
Posted By ajitkumar2
on running - $ a.sh 'inst_cont_Header__dss -v '" ...
on running - $ a.sh 'inst_cont_Header__dss -v '" 0"' -m'
required string - inst_cont_Header__dss -v '" 0"' -m
"$@" gives - inst_cont_Header__dss -v 0 -m

It...
6,026
Posted By ajitkumar2
read command line as it is
I want to read the command line as it is in the script.
say
prompt$ a.sh 'inst_cont_Header__dss -v '" 0"' -m'

i want to use 'inst_cont_Header__dss -v '" 0"' -m' as it is,...
2,615
Posted By ajitkumar2
can't run "date" command
A strange observation -

$ ksh date
ksh: date: cannot execute

$ ksh "date"
ksh: date: cannot execute
$ ksh "date "
Thu Sep 18 09:22:12 CDT 2008


why the date command doesn't run without...
25,509
Posted By ajitkumar2
I just tried.. It worked !!! Thank you very...
I just tried.. It worked !!!

Thank you very much....

previuosly I did it with !s. there it didn't work.
25,509
Posted By ajitkumar2
I've got a workaround, But thats not fool-proof -...
I've got a workaround, But thats not fool-proof -

sed "/[rs][ue]nd[se][jv][oe][bn]t*/ !s/\(command: *\)\(.*$\)/command: execute_args.sh '\2'/" aa
25,509
Posted By ajitkumar2
Thants not intentional , two patterns are...
Thants not intentional , two patterns are different.

Tiger,
Your methos doesn't work , It'll apple substitution on both search pattern lines which I want to exclude.

Let me give you real...
25,509
Posted By ajitkumar2
yes, I did.. with that too, it worked on all...
yes, I did..
with that too, it worked on all the data considering "'/search_pattern1\|search_pattern1/" as one word.
25,509
Posted By ajitkumar2
OK, here is what I want to do 1. I want...
OK, here is what I want to do

1. I want perform some opreation on the lines which does not have search_pattern1 or search_pattern2.

2. And the operation is - in those lines replace pattern1...
25,509
Posted By ajitkumar2
This doesn't work.
This doesn't work.
25,509
Posted By ajitkumar2
search two words in sed
I've following sed command working fine -
sed '/search_pattern1/ !s/pattern1/pattern2/" file

Now, I want to search two patterns - search_pattern1 and search_pattern2 .


How can put these...
8,372
Posted By ajitkumar2
That works perfact!! Thankyou very much .
That works perfact!!
Thankyou very much .
8,372
Posted By ajitkumar2
negate search within sed
I working fine with following statement -

sed '/search_pattern/ s/pattern1/pattern2/' file_name

requirement changes , now i want negate the search something like -

sed '! /search_pattern/ ...
6,289
Posted By ajitkumar2
Oopsss!!! i got it .... it's due to...
Oopsss!!!

i got it ....

it's due to unmatched quotes ".

nevermind !!!
6,289
Posted By ajitkumar2
it's $FAILURE_RC output looks like -- ...
it's $FAILURE_RC

output looks like --

####################################################################
Successfull.. exit returing 0 ...
echo...
6,289
Posted By ajitkumar2
if else block
a part of my script -
it's running if and else block both!!, please help-
-----------------------------
shift $(($OPTIND - 1))
SCRIPT=$*...
Showing results 1 to 18 of 18

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