in reply to Re: creating Shell Script using Perl
in thread creating Shell Script using Perl

print FILE '    [[ -f "$FILE" ]] && grep ... && break\n';

This gives you a literal  \n (backslash-n) at the end | embedded in the output file. See this for a better (IMHO) approach.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^3: creating Shell Script using Perl
by vinoth.ree (Monsignor) on Sep 06, 2017 at 08:19 UTC

    Oh! Sorry about that, didn't noticed it, I just concentrated on getting those variable into the shell script.


    All is well. I learn by answering your questions...