Search Results

Search: Posts Made By: slatoms
12,259
Posted By bakunin
Of course it is. Bash isn't a shell well suited...
Of course it is. Bash isn't a shell well suited to scripting at all IMHO and should be avoided at all costs.

I suspect you are on an AIX system (btw. always say which system you work on - they all...
12,259
Posted By Lem
Hi! IMHO if you could use bash instead of...
Hi!

IMHO if you could use bash instead of sh, there would be a trivial solution using select instead of case:


#!/bin/bash
INSTANCE=""
while [[ $INSTANCE = "" ]]; do
echo "DB2 INSTANCE...
12,259
Posted By joeyg
Bumping up posts or double posting is not...
Bumping up posts or double posting is not permitted in these forums.

Please read the rules (https://www.unix.com/misc.php?do=cfrules), which you agreed to when you registered, if you have not...
17,104
Posted By dr.house
No problem ;) YEAR=$( echo $FILE | awk -F...
No problem ;)


YEAR=$( echo $FILE | awk -F '-' '{print $2}' )
MONTH=$( echo $FILE | awk -F '-' '{print $3}' )
case $MONTH in
"01") MONTH='JAN' ;;
# etc. etc.
"04") MONTH='APR' ;;
#...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy