i have to use the following 'grep' command to extract from a LOGFILE.Its working but could anyone please let me know how this below 'grep' command is working.?Please explain in detail.Thanks in advance.Please reply as i need to understand it
INS=`grep "Insert completed" ${LOGFILE}.tmp | sed 's/\(^.*Insert completed. \)\(.*\)\
(row.*$\)/\2/'`