Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: creating Shell Script using Perl

by AnomalousMonk (Archbishop)
on Sep 06, 2017 at 06:54 UTC ( [id://1198747]=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1198747]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-23 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found