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

    uninitialized value message?

    Hello everyone, I keep getting this message every so often when my perl script runs. Any one have any ideas how to fix it? The message points to this particular code in my script. Use of uninitialized value in transliteration (tr///) my $count = $text =~ tr/://; Thanks!
  2. rigstars1

    help returning active interface?

    The script searches for active interfaces and returns the correct value except I want to also add a statement in there that returns "No active interfaces found" if there are truly no active interfaces.. having trouble adding an if/else statement in here? Any suggestions? #!/bin/sh for iface in...
  3. rigstars1

    help returning active interface?

    The script searches for active interfaces and returns the correct value except I want to also add a statement in there that returns "No active interfaces found" if there are truly no active interfaces.. having trouble adding an if/else statement in here? Any suggestions? #!/bin/sh for iface in...
  4. rigstars1

    grep command error UID: command not found

    This command greps for 'unlinkd' which works fine ps -l -u squid | grep unlinkd | cut -c 96-102 but as soon as I put it in a script ..the output is always the word 'UID' Any one know why that is? variable=(`ps -l -u squid` "| grep unlinkd | cut -c 96-102")
  5. rigstars1

    awk cmd-get total size of directory including subdirectories

    ls –lR |awk '{total +=$5};END {print "Total size: " total/1024/1024 " Mb"}' I'm trying to get the total size of the current directory including subdirectories with this command. Can't figure out why it gives me this message. Can someone provide some guidance? Thanks! ls: –lR: No such file or...
  6. rigstars1

    awk alias is not working

    I need help setting this up as an alias in bash. I can't get it working. Please help. top -l 1 | awk '/PhysMem/ {print "Used: " $8 " Free: " $10}'?

Part and Inventory Search

Back
Top