Search Results

Search: Posts Made By: joshuaduan
6,894
Posted By joshuaduan
Does KSH support data type conversion?
Hello,everyone here.
I'm coding with KSH to achieve exploring the disk space and judging whether it closes to overflow.But It seems that no one way to convert a string variable to integer.

...
80,254
Posted By joshuaduan
Thank you! Jean,you're so intelligent and...
Thank you! Jean,you're so intelligent and experienced on Shell programming,I am so luky to meet you!

Thousands of thankfulness,God bless both you two!
80,254
Posted By joshuaduan
Hi,LiquidChild The issue is resloved,I...
Hi,LiquidChild

The issue is resloved,I edited the code in Windows and uploaded it to a Unix machine,so the error occured,I format it to Unix format with UltraEditor and modified sentences such...
80,254
Posted By joshuaduan
Still had problem
Hi,I've corrected the code as above.The file ran normally,but it had a error prompt: :invalid option line 2 : set: -2 (the snap shot is in the attachment.)

I can't remove set -x,or the code won't...
2,835
Posted By joshuaduan
Hello, I didn't have any shell programming...
Hello,

I didn't have any shell programming experience before,I was a Java programmer.So I need you guide to help this code can read directory string from a file.

Regards,
Joshua
80,254
Posted By joshuaduan
Hello,Mr.Jean-Pierre Sorry for any...
Hello,Mr.Jean-Pierre

Sorry for any misreading ,did you mean that I should modify the code like following?



I executed the sh file with sh filename.sh,is this correct?

Dear Mr.Jean,I just...
2,835
Posted By joshuaduan
Urgent!!!Read directory from a file
I have a receive script file which had lots of direcorties to process,but now,I don't want to hardcode them,I need input the directory name in a Property.txt file,then write shell code to read the...
80,254
Posted By joshuaduan
syntax error near unexpected token...what caused?
Dear all,

When I tried to run receive.sh,it returned following errors.
syntax error near unexpected token `do

#!/usr/bin/ksh
GlobalValueReceive=r
GlobalValueWorking=w
GlobalValueTemp=t
...
4,318
Posted By joshuaduan
Read string from a file,plz help me to check
#!/usr/bin/ksh
exec 0<property
while read newReceiveDir
do
if [ {$newReceiveDir:0:11} = New receive ]
then
sed -e 's//home/joshua/bodi/data/receive/{$newReceiveDir:25}/g/'...
1,325
Posted By joshuaduan
Thank you ! Shell_Life.
Thank you ! Shell_Life.
1,325
Posted By joshuaduan
Regarding displacement of certain string
Hello,ladies and gentlemen

I want to displace a string with another different string in a Korn shell file(*.h) which will includes the code to achieve the goal.How should I code?

For...
Showing results 1 to 11 of 11

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