hey master, i wanna ask about read file with if argument, couse i always get script for read file with while argumrnt...
read file with if argument.....
Started by kiddies, Jul 31 2009 06:16 AM
7 replies to this topic
#1
Posted 31 July 2009 - 06:16 AM
|
|
|
#2
Posted 31 July 2009 - 07:33 AM
Can you give an example of what you're talking about?
#3
Posted 01 August 2009 - 01:36 AM
Quote
value=0;
while read line
do
value=`expr $value + 1`;
echo $value;
done < "myfile"
echo $value;
while read line
do
value=`expr $value + 1`;
echo $value;
done < "myfile"
echo $value;
i will make this with if argument...can u change it...
#4
Posted 01 August 2009 - 04:20 AM
You'll need some kind of loop... I'm still not clear on what you're trying to accomplish.
#5
Posted 02 August 2009 - 06:33 AM
ok, i cannot understand in shell script sir...
#6
Posted 02 August 2009 - 07:15 AM
What are you trying to do?
#7
Posted 04 August 2009 - 06:24 AM
just wanna learn n make it work well...
#8
Posted 04 August 2009 - 06:33 AM
When writing software, the first step is to think in terms of "What are my inputs, what are my outputs?" You then write processing to get from your inputs to your outputs.
What you have given is the processing, but neither the inputs nor the desired outputs. Based on that, I cannot help you because I don't know the purpose of the code you wrote, what it's supposed to do, or why it is inadequate.
What you have given is the processing, but neither the inputs nor the desired outputs. Based on that, I cannot help you because I don't know the purpose of the code you wrote, what it's supposed to do, or why it is inadequate.


Sign In
Create Account


Back to top









