Search Results

Search: Posts Made By: desertchannel
13,986
Posted By desertchannel
Hi otheus, many thanks for your reply. ...
Hi otheus,

many thanks for your reply.

Unfortunately I'm working on Solaris with standard sysV vi :mad:
The ":set encoding ..." command is not available.
And therefore the sequence "CTRL-V u...
13,986
Posted By desertchannel
help on vi (special characters) needed
How to add characters (not on the keyboard) with vi to a file?

Example:
How can I enter the copyright sign (UTF-8-Codetable: 169) with vi?
12,309
Posted By desertchannel
There are two type of startup-files: - user...
There are two type of startup-files:
- user depending in home-dir of user (e.g. $HOME/.profile)
- system-wide (valid for all users) (e.g. /etc/profile)

user depending login-startup files (like...
7,014
Posted By desertchannel
Hi ripat! Many, many thanks for your...
Hi ripat!

Many, many thanks for your excellent help!
Your regexp is working perfectly!

Regards
Desertchannel
7,014
Posted By desertchannel
Unfortunately, I found another example where it...
Unfortunately, I found another example where it is not working :-(
I guess it is a never ending story :-(

Following two example are matched, but they shouldn't as they are not valid IPs:
7,014
Posted By desertchannel
Hi ripat, BRILLIANT! Thanks so much! ...
Hi ripat,

BRILLIANT! Thanks so much!

Your pattern is working (I guess you missed the NOT^ at the beginning of [.0-9]: [^.0-9] instead of [.0-9]):...
7,014
Posted By desertchannel
Hi ripat, THANKS A LOT! Nearly there :-)) ...
Hi ripat,

THANKS A LOT! Nearly there :-))

I consider the whole range of IPs as valid IP (0-255.0-255.0-255.0-255).

The only problem left (which I can see currently) is that your regexp is...
1,495
Posted By desertchannel
try it with printf instead of print: main...
try it with printf instead of print:
main difference is that printf does not automatically supply a newline:

awk -v n=4 'BEGIN{FS=OFS="|"}{for(i=1;i<=NF;i++)if(index($i,".")>n)printf $i}' file1
7,014
Posted By desertchannel
Hi ripat, thanks for your reply, but this is...
Hi ripat,

thanks for your reply, but this is unforunately not working as you asume that the IP address is the only information in the line (^....$).

Here is my testfile:
1. Yes 123.25.67.8...
7,014
Posted By desertchannel
Problem with regexp for IP-Adress Pattern
Hi all Unix Gurus!

Since hours (even days :-)) I'm trying to find the correct pattern to search for IP addesses in text files.
The pattern to find a IP address itself is not too difficult:...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 05:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy