If I have a log file and want to dump only the text between 1234 and 9876 in to another file, how can i do this easily?
If I have a text file like this:
idsfsvcvs sdf sdf e e sd vs d s g sg s vc d
slkdfnls 1234 keep me text 9876 das a g w eg dsf sd fsdf
sdfs fs dfsdf
sdfsdf sdf
sdf s fs
dfsf ds
I want to do somthing like this
$ getinfo "1234" "9876" log
$ cat log
keep me text