Search Results

Search: Posts Made By: unclepickle1
1,514
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,730
Posted By unclepickle1
Thank you!
Thank you!
1,730
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,448
Posted By unclepickle1
Sorry this isn't working, it runs the script...
Sorry this isn't working, it runs the script infinitely
13,448
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 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy