Search Results

Search: Posts Made By: hemanth424
2,729
Posted By hemanth424
Hi thanks, it is working. But I want to store...
Hi thanks, it is working. But I want to store this in a variable. please help in doing this
3,531
Posted By hemanth424
Does the script really recognizes the command...
Does the script really recognizes the command line argument 'Dark* Red' as a single parameter?

I think it will still takes 'Dark* as one argument and Red' as an other argument.

But I have not...
2,729
Posted By hemanth424
I am not getting you. do you want me to try this...
I am not getting you. do you want me to try this way?

#!/usr/xpg4/bin/awk
echo "-------START-----"
string="Hi How are you"
awk -v s="$string" 'BEGIN {print index (s, "are")}'
echo...
3,531
Posted By hemanth424
problem with KSH script: command line args
Hi I am executing a KSH script by passing command line arguments

example: Red Green Dark Red Blue

when I am splitting the arguments by using " "(Space) as delimiter

But the colour Dark Red...
2,729
Posted By hemanth424
I am not getting the expected output :( I...
I am not getting the expected output :(

I wrote the code like this

#!/usr/bin/ksh
echo "-------START-----"
string="Hi How are you"
awk -v s="$string" 'BEGIN {print index (s, "are")}'
echo...
2,729
Posted By hemanth424
problem with awk command
I have written some code in a KSH script to find the index of the character in a string like this

#!usr/bin/ksh

string="Hi How are you"
awk 'BEGIN {print index ($string, "are")}'

My...
1,325
Posted By hemanth424
Troubling with delimiter. Please help. Im new to unix
Hi all, I have a problem in shell script. I think my script is a Konshell.
It has #!/usr/bin/ksh at the starting

I have a string variable which will store the value like this (This string is...
Showing results 1 to 7 of 7

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