I have a bunch of files in a folder with data like so:
+---------------------------------------------------------------------
+----------------------------+
| Total SE In Database
+
+---------------------------------------------------------------------
+----------------------------+
+
Total SE Database
+
-----------------
+
44835
+
+---------------------------------------------------------------------
+----------------------------+
| Total SE ON
+
+---------------------------------------------------------------------
+----------------------------+
+
Total SE ON
+
-----------
+
39035
+
+---------------------------------------------------------------------
+----------------------------+
| Total SE ON For SNMP
+
+---------------------------------------------------------------------
+----------------------------+
I need to get that number "39035", and I've been tinkering with a one-liner (though yeah, I'm a rusty-newbie), and the following doesn't work for me:
perl -ne 'if (m/^Total SE ON.*(\d+)/s) {print "$1\n"}' *
Any suggestions Gurus?