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

  1. gr0124

    regular expression, can you do something from "if" without using grep?

    No problem, this is the response to `ps -f` $ps -f UID PID PPID C STIME TTY TIME CMD FIA1GSZ 33554500 594 - 12:31:02 ttyp0002 0:00 ps -f FIA1GSZ 594 83886191 - 12:30:56 ttyp0002 0:00 sh -L $
  2. gr0124

    regular expression, can you do something from "if" without using grep?

    #!/bin/ksh did not help. I had originally #!/bin/sh What has worked was both with #!/bin/sh and with #!/bin/ksh is the following: script_name="aa_encrypt_sh" case $script_name in *_encrypt_*) echo "Sorry, script $0 you called is a wrong script"...
  3. gr0124

    regular expression, can you do something from "if" without using grep?

    running this: script_name="aa_encrypt_sh" if [[ $script_name = @(*_encrypt_*) ]] then { echo aaaaa } fi [[: ./1 38: FSUM6807 expression syntax error, points to line 38 of my script which is if [[ $script_name = @(*_encrypt_*) ]] running this: if [[ $script_name...
  4. gr0124

    regular expression, can you do something from "if" without using grep?

    Thanks everybody a lot, I will try these things today. The platform were I am testing is really ZOS (MVS)
  5. gr0124

    System today is unavaile. Need unix access to test #!/bin/sh

    System today is unavaile. Need unix access to test #!/bin/sh script. Does anybody knows a site that will allow me to set a unix shell account with telnet access?
  6. gr0124

    regular expression, can you do something from "if" without using grep?

    I know I can use grep to see if certain string is present. Is there something that I can do with just "if". Something like : if [ $sript_name ???bla_bla_bla "_encrypt_" ] then { echo "Sorry, script $0 you called is a wrong script" exit 2 } fi echo "Good usage of script. Continue." exit 0
  7. gr0124

    Can I have 2 TSO sessions open at the same time for same user?

    How can I have 2 mainframe TSO sessions going at the same time for the same user?

Part and Inventory Search

Back
Top