Saturday, November 20, 2010

How to write a bash shell with redirections, change in directories, etc?

I alredy have the second part. But I cannot get the first part when I parse the files and use a for loop.

My teacher gave me this example but I need the English Version: for(i=0; i%26lt;strlen(command); i++){

What is this. What does this mean?How to write a bash shell with redirections, change in directories, etc?
this loop is going to find the string length of all the commands in the loop



So, in the batch script



cls

net user /domain %username%



It's going to return a bunch of numbers totaling the characters in the command.



ex



3

27





It is quite usless, but it gives ideas on what to do next... you could build off of it....

No comments:

Post a Comment