Thank you for your fast reply!
The perl script generates yesterdays date, saves it in $day $month and $year and prints these 3 variables.
I can use this date as one string, that is no problem.
But the perl script also has the variable $counter which is also printed.
The final output looks like this:
in reply to Re: Call perl script and capture values in bash.
in thread Call perl script and capture values in bash.
I need to use the date and the $counter value in bash.
print "Backup date: $day\.$month\.$year\n";
print "$counter files have been successfully saved.\n";