set -xflag shows the details.
So a script snippet that would work on command line
awk 'BEGIN {RS="_EOL@"}' 'END {print $NF}" a.txt
is to be transformed to:
ETL_RECORD_DELIMITER="_EOL@"
cmd=`awk BEGIN{RS="\"$ETL_RECORD_DELIMITER\""}" "END{print" "NR} a.txt`
The white spaces are to be demarcated using " ", if you missed the gist.
No comments:
Post a Comment