Search Results

Search: Posts Made By: Jonty Immortal
11,313
Posted By Jonty Immortal
To find nth position of character in string
Hi guyz i want to know nth position of character in string. For ex.
var="UK,TK,HK,IND,AUS"

now if we see 1st occurance of , is at 3 position, 2nd at 6,..4th at 13 position.
1st position we can...
8,651
Posted By Jonty Immortal
Thanks Everyone...got resolved. ----------...
Thanks Everyone...got resolved.

---------- Post updated at 01:07 PM ---------- Previous update was at 01:07 PM ----------

Thanks everyone.it got resolved.
8,651
Posted By Jonty Immortal
[: ']' missing Error is coming
Hi guyz, i m new to UNIX (ksh) shell scripting. while running simple code i m getting error.

read opt1
read opt2

if [ [ "$opt1" == 1 || "$opt1" == 2 || "$opt1" == 3 ] && [ "$opt2" == "YES" ]...
Showing results 1 to 3 of 3

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