in reply to Re^2: Cutting last word from a output line
in thread Cutting last word from a output line
I continue taking your specs literally.
I assume that you:
So i jumped to the conclusion, that you need something like this:
karls-mac-mini:monks karl$ sysname=$(./snmpwalk.pl | perl -ae 'print p +op @F') karls-mac-mini:monks karl$ echo $sysname USWLS-P-TR03-C4510RE-1.adagnet.net
See also I know what I mean. Why don't you?.
BTW, if you are on Windows, where does your awk come from? Cygwin? Or do you expect a port to PowerShell?
Edit: Strucked out useless/annoying comment.
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Cutting last word from a output line
by Bharath.M.R (Initiate) on Feb 28, 2015 at 16:07 UTC | |
by karlgoethebier (Abbot) on Feb 28, 2015 at 17:26 UTC | |
|
Re^4: Cutting last word from a output line
by Bharath.M.R (Initiate) on Feb 28, 2015 at 18:16 UTC | |
by karlgoethebier (Abbot) on Feb 28, 2015 at 18:44 UTC | |
by Bharath.M.R (Initiate) on Feb 28, 2015 at 19:43 UTC | |
by karlgoethebier (Abbot) on Feb 28, 2015 at 20:53 UTC |