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 Mike Lewis 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. borne2bash

    Regex Match

    Hope this helps: perl -nle 'print $1 if (/.*?(6768743).*?/)' html.txt
  2. borne2bash

    How to use variables in an alias?

    Hey kmarris. Try adding an equal sign after what you're assigning an alias to, like so: $ alias test="ps | awk '{print $1}'" $ test PID TTY TIME CMD 9711 pts/6 00:00:00 bash 17406 pts/6 00:00:00 ps 17407 pts/6 00:00:00 awk Hope this helps. borne2bash
  3. borne2bash

    SED substitution question

    What's up Alan, You're on the right track. sed 's/V[app|opt]...' should work. borne2bash
  4. borne2bash

    size of directory

    du -ch /directory | grep total | awk '{print "Directory Size: "$1}' Just a fancier way. Good luck.
  5. borne2bash

    Problem with Regular expr sp char with Or logic in grep

    what's up ljsmith91. see if the following will work for you: #!/bin/sh myvar="_test$" test=$(echo $myvar | grep -i '_test\$') if [ -z "$test" ] then alert_type="Production" else alert_type="Test" fi echo "$alert_type" i changed the value of $myvar to various cases and it...

Part and Inventory Search

Back
Top