I'm writing a script to retrieve data from devices in a network. Now I want to put the data I retrieve into a SQL database for easy querying.
In order to do this I need to parse the retrieved data. Thereby I just want to retrieve the part that I am interested in.
I can do this using shell scripting and the following command:
egrep -o "[0-9]{1,2}:[0-9]{1,2}.[0-9]{1,2}:[0-9]{1,2}" < retrieved_data
But as my entire script will be running using a combination of TCL/EXPECT I am wondering how I can succeed using only that, thus not having to run seperate scripts from a shell script.