linux - syntax error unexpected token using pipe (|) in perl -
I am creating a pell script to know and it took me a while to find such an error in my script And this is a line of my script where the error occurs This is what I did. And its output is the name of the file in You will return whatever you like. What do I mean here: Both lines will output But I am confused, what are the double quotes for your order? Syntax error with unexpected token '| '`|
awk -F \ '= \' \ {print \ $ 2} \ '$ Bundle | Awk -F \ '/ \' \ '{print \ $ 11} \'
perl Instead, use
split to call external commands:
(partition '/', $ bundle) [10];
Use strict; Use warnings; My $ bundle = "a / b / c / d / e / f / g / h / i / j / k / l / m / n / o /"; Print `echo $ bundle | Awk -F \ '/ \' \ '{print \ $ 11} \'; Print ((division '/', $ bundle) [10], "\ n");
k .
Comments
Post a Comment