Search Results

Search: Posts Made By: unclepickle1
1,504
Posted By unclepickle1
How to print number before argument?
Hey everyone,

I need to write a script that will display the number of the argument before displaying the argument itself. Here's what I have so far:

for arg in "$@"
do
echo $#:$arg
done
...
1,725
Posted By unclepickle1
Thank you!
Thank you!
1,725
Posted By unclepickle1
How to take arguments?
Hey everybody.

How do you write a program that will produce output based on its arguments?

For example, how would you write one that will add 1 to an integer argument so it would look like...
13,404
Posted By unclepickle1
Sorry this isn't working, it runs the script...
Sorry this isn't working, it runs the script infinitely
13,404
Posted By unclepickle1
How to print arguments in reverse order?
Hey all,

How do I make a script print its arguments in reverse order?

Thanks
Showing results 1 to 5 of 5

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