I have a file as given below, I need to access a particular string from the below given text file.
** The gSOAP code generator for C and C++, soapcpp2 release 2.8.12
** Copyright (C) 2000-2012, Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any warranty.
** The soapcpp2 tool is released under one of the following two licenses:
** GPL or the commercial license by Genivia Inc.
How can i use shell script in order to get the number 2.8.12 from the above text file,
Here is a program in AWK. Put this in a text file, set execute permission on the text file, and run it with input from the file.
I prefer Python these days, so here’s a Python solution as well.
If you put either program in a file called “foo” and save it, you can then do: