Can you give an example of what you're talking about?
Thread: read file with if argument..... |
hey master, i wanna ask about read file with if argument, couse i always get script for read file with while argumrnt...
Can you give an example of what you're talking about?
CodeCall Blog | CodeCall Wiki
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
i will make this with if argument...can u change it...value=0;
while read line
do
value=`expr $value + 1`;
echo $value;
done < "myfile"
echo $value;
You'll need some kind of loop... I'm still not clear on what you're trying to accomplish.
CodeCall Blog | CodeCall Wiki
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
ok, i cannot understand in shell script sir...
What are you trying to do?
CodeCall Blog | CodeCall Wiki
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
just wanna learn n make it work well...
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.
CodeCall Blog | CodeCall Wiki
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
There are currently 1 users browsing this thread. (0 members and 1 guests)