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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by anatazi

  1. anatazi

    Date command

    I did, and i still get the same message.syntax error: `(' unexpected Thanks
  2. anatazi

    Date command

    I have just changed it permanently to ksh and it still gives the same error.
  3. anatazi

    Date command

    I am using an interactive Bourne shell (sh)
  4. anatazi

    Date command

    Hi again, I tried running the echo $[(`date +"%u"`-1+7)%7] and got syntax error: `(' unexpected Any ideas why? Thanks
  5. anatazi

    Date command

    Is there a way to get the date command to display yesterday's day of the week either in numbers[1,7] or words? Thanks
  6. anatazi

    loop through a file

    Hi all, I tried both of your suggestions and they both work fine however, now my inside loop does not work. It seems that the if $2>=2; then echo "$9 has $2 links." else echo "$9 has one link>" goes looking for agruments in the command line. so the...
  7. anatazi

    loop through a file

    hi all i just have a quick question. i am writing a script that will check the number of links for each file in the user's directory and output the appropriate message. here it is: #!/bin/sh ls -l >outputfile HERE IS MYQUESTION: how do I loop through each line of the file outputfile for...
  8. anatazi

    hash tables?

    ok, So basically they provide faster access to data because they do less comparisons. so istead of a long list you have several short lists. Ok I'll just need to practice using them. Thanks for the explanation.
  9. anatazi

    hash tables?

    Hi all, can someone please explain to me how hash tables work and how they provide fast random access? Thanks a lot.
  10. anatazi

    question on binary search

    Hi all, Which version of bianry search is better? the forgetful version or the one that terminates as soon as the value is found. Also , can anyone explain to me how comb sort works? Thanks,
  11. anatazi

    help with queue question

    thanks, Appreciate the feedback.
  12. anatazi

    help with queue question

    Hi all, How do you clear a queue that is implemented in an array? here is my tentative code below. Please give me some feedback. Thanks void clearqueue (queueentry *x, queue *q) { while(q->front) { q->count--; x*=q->entry[q->front]; q->front=(q->front + 1) % MAXQUEUE...
  13. anatazi

    adding one list to the other

    How do write the loop to add one list to the other; add each node to the list?
  14. anatazi

    script help

    An example would be; if the intput is a a:b a:b:c :x: y:z the output would look like a:b:c:.:x:y:z, Thanks
  15. anatazi

    HOw can I make a square using just

    HOw can I make a square using just single dimensional array? for example array[12]={1,2,2,3,4,5,6,4,5,6,9,12} would give something like: 1 2 2 3 4 5 6 4 5 6 9 12 I knom I need to use a for loop but can't get it to print it out correctly. THanks a lot

Part and Inventory Search

Back
Top