Search Results

Search: Posts Made By: girish_satyam
1,051
Posted By girish_satyam
Output to be in single line
Hi All,

Small script but :wall:, please help in this regard.

for i in 1 2 3
do
echo $i
done

result :
1
2
3

I want the above to be printed as below
expected result:
1 2 3
...
8,528
Posted By girish_satyam
Hi Michael, thanks for that :), its working...
Hi Michael,

thanks for that :), its working the variable issue.

Can you please suggest me any solution for the 'for loop' too ? :(:D
8,528
Posted By girish_satyam
#!/usr/bin/ksh for i in 1 2 3 4 do echo $i done...
#!/usr/bin/ksh for i in 1 2 3 4 do echo $i done
I have already tried the above, it works fine but in for loop declaration i should pass a variable, i cannot use static count :(

$count should...
8,528
Posted By girish_satyam
After execution getting the below error now :( ...
After execution getting the below error now :(

#!/usr/bin/ksh for i in $(seq 1 4) do echo $i done
Output:
./x.sh[2]: seq: not found.
8,528
Posted By girish_satyam
sorry for that :), wrongly copied. AIX-P550,...
sorry for that :), wrongly copied.

AIX-P550, i'm trying to execute the for loop in script.

#!/usr/bin/ksh is the first line

Thanks
8,528
Posted By girish_satyam
Still getting the same error :confused::confused:...
Still getting the same error :confused::confused:

./x.sh: 0403-057 Syntax error at line 1 : `(' is not expected.

Instead of colors and bold formatting, please use [CODE]...
8,528
Posted By girish_satyam
For loop not working
Hi All,

For loop in ksh not working if it was given in the following method.

simple script:
for i in {1..4}
do
echo $i
done
Output:
{1..4}

Even below also not working :(

Script:...
1,373
Posted By girish_satyam
Hi Michael, thanks for the help its working...
Hi Michael,

thanks for the help its working fine :):):)

:b::b:
5,962
Posted By girish_satyam
Is the user of the directory mounted...
Is the user of the directory mounted [TSDapp-na-02:/vol/tsd_app_1/rn_jira] directory is in NIS with which the copy is happening?

if so no issue, if not provide required permissions to that...
1,373
Posted By girish_satyam
Declaring variable with another variable
Hi All,

The issue is that for changing name of the file i'm writing a script, there the at one point i need to declare a variable some thing like 'var1, var2, var3 ......' which has to store some...
Forum: AIX 07-24-2010
2,270
Posted By girish_satyam
Problem with updation of 'quota'
Hi,

We have recently implemented 'quota' concept for the unix users.

softlimit - 230MB
hardlimit - 250MB

We have applied the quota when few of users are more than the hardlimit,issue is...
Showing results 1 to 11 of 11

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