gjoshi has asked for the wisdom of the Perl Monks concerning the following question:
I would like to just get string "Running:Mgen:3848" and store it in a variable so that I can do come post processing. thanks --girija$tmp = "1: 2\n2: /my/tmp/20160213T161519/outgoing\n3: DL\n4: 0\nTempSo +urce: , Ue: 2, TaskName=, TempDest: \nTaskName \n/data/busybox/ps |gr +ep mgen5| grep -v grep\nDL txt is running PID: 3848\nRunning:Mgen:384 +8";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to findout a sub string from the string
by davido (Cardinal) on Feb 13, 2016 at 19:38 UTC | |
by Discipulus (Canon) on Feb 13, 2016 at 22:00 UTC | |
by davido (Cardinal) on Feb 14, 2016 at 04:39 UTC | |
|
Re: How to findout a sub string from the string
by Laurent_R (Canon) on Feb 13, 2016 at 18:27 UTC | |
|
Re: How to findout a sub string from the string
by Discipulus (Canon) on Feb 13, 2016 at 17:54 UTC | |
by AnomalousMonk (Archbishop) on Feb 13, 2016 at 19:04 UTC |