Hi, I am working on writing a c shell script. It's this the 3rd script I would be writing. I am fairly new to c shell but not new to programming.
I need help to figure out how to use regular expressions in c shell. I am used to doing it in C++ and PHP. /.+[a-z]/ etc I need to know how it would work in c shell.
I know .+ means 1 or more matches of any character. I want to know if this is possible in c shell and is it the same as used in PHP / perl etc.
I need to grab an ip out of a file. The file will contain 2 ip addresses ip1 < ip2 :timestamps:
I want to grab ip2 and need to match < cuz the ip after this and is what I need to grab. However, don't want to grab the character <. I want to exclude it from returning with the matches made.
I need help to figure out how to use regular expressions in c shell. I am used to doing it in C++ and PHP. /.+[a-z]/ etc I need to know how it would work in c shell.
I know .+ means 1 or more matches of any character. I want to know if this is possible in c shell and is it the same as used in PHP / perl etc.
I need to grab an ip out of a file. The file will contain 2 ip addresses ip1 < ip2 :timestamps:
I want to grab ip2 and need to match < cuz the ip after this and is what I need to grab. However, don't want to grab the character <. I want to exclude it from returning with the matches made.