help can't understand the code

Hi All,

Good day, i'm just wondering what is the meaning of this code?

COUNT_EXTRACTED_FILE=`${ECHO_CMD} "${SE_IN_PATH}${SE_IN_FILE}" | ${AWK_CMD} -F"__" '{print $2}'`

Thanks,
-niks(newbie)

you still newbie :slight_smile: ?

you need to check your code by executing some examples.

echo "abcd__efgh" | awk -F"__" '{print $2}'

here Field delimeter is __
and we are printing the second field ( efgh )

1 Like

hihihi.... yup i'm still a newbie in shell.. tsktsk.. thanks master itkamaraj. :slight_smile: