Forum: Shell Scripting May 14th, 2004 |
| Replies: 9 Views: 15,311 * = any ammount of matches of the previous expression
For example:
[[:graph:]]* is really "Any printable and visible (non-space) character repeated any number of times" |
Forum: Shell Scripting May 14th, 2004 |
| Replies: 9 Views: 15,311 That is what I posted about:
grep -o "[[:alnum:][:graph:]]*@[[:alnum:][:graph:]]*"
grep -o returns the matched expression instead of the whole line matched
I realized that this can... |
Forum: Shell Scripting May 14th, 2004 |
| Replies: 9 Views: 15,311 Those look awfully familiar. Did you grab those off of a "100 useful SED scripts" site? :) |
Forum: Shell Scripting May 14th, 2004 |
| Replies: 9 Views: 15,311 And grep saves the day. Next time I'll RTFM better. :)
grep -o "[[:alnum:][:graph:]]*@[[:alnum:][:graph:]]*"
I haven't tested for many bugs/quirks in the results yet, but a few quick checks... |
Forum: Shell Scripting May 14th, 2004 |
| Replies: 9 Views: 15,311 I have a bunch of text files with different formats that somewhere in the file have email addresses. I would like to be able to parse through any number of these files for email addresses. Here are... |
Forum: Shell Scripting May 3rd, 2004 |
| Replies: 5 Views: 10,838 Using Windows 2000 server. I was testing it at the command line. That was the problem. Thanks! |
Forum: Shell Scripting May 3rd, 2004 |
| Replies: 5 Views: 10,838 That yields the same problem that I was having:
%%A was unexpected at this time. |
Forum: Shell Scripting Apr 29th, 2004 |
| Replies: 5 Views: 10,838 bash:
#!/bin/bash
DOMAIN=mydomain.com
for client in ServerA ServerB ServerC ServerD
do
xhost +$client.$DOMAIN
done |