Not sure if this is posted to the right place.
I have a script that is trying to get the day and month of an entered file name. I found this code which will print it out:
#!/bin/ksh
month=`date +%m`
day=`date +%d`
ls -l $FILE | nawk -v month=${month} '
{ printf("%s\n"...
I have variables named, for simplicity, $x1, $x2, $x3, up to $x20 and each one does the exact same thing.
Is there any way to have a loop that has $x$i for $i from 1 to 20?
A foreach loop will not work, at least I don't think it will, because I also have variables $x_font1 to $x_font20 to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.