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 IamaSherpa 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: *

  1. smm4301

    Assigning a variable

    It worked! I tried everything but that it seems like :) Thanks
  2. 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...
  3. smm4301

    Adding a variable onto a variable

    It was easier to use an array. Thanks
  4. smm4301

    Adding a variable onto a variable

    The variables are not integers. Is there a way if I have a variable $x6 which holds a string, to have that string print out for $x$i where $i = 6?
  5. 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