Search Results

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: i686-linux ; Forum: Shell Scripting and child forums
Forum: Shell Scripting May 14th, 2004
Replies: 9
Views: 15,311
Posted By i686-linux
* = 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
Posted By i686-linux
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
Posted By i686-linux
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
Posted By i686-linux
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
Posted By i686-linux
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
Posted By i686-linux
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
Posted By i686-linux
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
Posted By i686-linux
bash:

#!/bin/bash

DOMAIN=mydomain.com

for client in ServerA ServerB ServerC ServerD
do
xhost +$client.$DOMAIN
done
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC