AXISHK
asked on
Bash/ php script
dbdata=`mysql --default-character-set=ut f8 -h$MYSQL_HOST -u$MYSQL_USR -p$MYSQL_PWD Cust -e "mysql -h$MYSQL_HOST -u$MYSQL_USR -p$MYSQL_PWD Cust -e "select id from sccsJob where status='Pending' order by id;" | sed "1 d"`
SAVEIFS=$IFS
IFS="$( echo -e '\t' )" read -ra jobinfo <<< "$dbdata"
IFS=$SAVEIFS
#DOMAIN=$(echo $JOBINFO | awk '{print $1}')
----------------
What does the following mean :
#1 sed "1 d"
#2 IFS="$( echo -e '\t' )" read -ra jobinfo <<< "$dbdata" .... any special meaning for <<< ?
SAVEIFS=$IFS
IFS="$( echo -e '\t' )" read -ra jobinfo <<< "$dbdata"
IFS=$SAVEIFS
#DOMAIN=$(echo $JOBINFO | awk '{print $1}')
----------------
What does the following mean :
#1 sed "1 d"
#2 IFS="$( echo -e '\t' )" read -ra jobinfo <<< "$dbdata" .... any special meaning for <<< ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tks
sed '1d' as JMCG told, removes the first line and prints out the rest.