Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: smm4301
  • Content: Threads
  • Order by date
  1. smm4301

    Assigning a variable

    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&quot...
  2. smm4301

    Adding a variable onto a variable

    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...

Part and Inventory Search

Back
Top