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 derfloh 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: bhagabati
  • Content: Threads
  • Order by date
  1. bhagabati

    Count files existing in my current directory with extention .log.

    I need to count files existing in my current directory with the file extention of *.log.* so that I can initialise using the loop like x=0 while [ $x -lt $num ] do > $(eval echo \$$i).log.$x x=`expr $x + 1` done How can I do it please give me a quick tips.
  2. bhagabati

    Passing a parameter as a variable.

    I am trying to a different number of parameter to a script and check them but I don't know where did I go wrong?. I wrote the following script test.sh #!/bin/sh count=$# i=1 while [ $i -le $count ]; do echo "parameter " $i " is " ${i} i=`expr $i + 1` done...
  3. bhagabati

    concatenate, compress the files and archive the file somewhere.

    I am very new to unix, I need to navigate to different directories and concatenate the files to one file, then compress the file and archive to another directory. I was thinking of using cat, gzip and mv commands. Please can some one give me bit of help. Thanks in advance

Part and Inventory Search

Back
Top