|
|
| Author |
Message |
papa
|
|
Hello, Grex!
|
Jan 27 07:11 UTC 2017 |
Hello, Grex!
I'm a new Grex member. Thanks for the validation.
I'm a fifty-something U.S. expatriate living in Japan for the last 25+ years.
Computer programming has been a hobby since my first exposure to BASIC on a
university mainframe during a junior high summer camp back in the late 1970s
(we got to do FORTRAN on punch cards, too!), and my interest has deepened as
my work has become less technical over the course of my career (I'm currently
an IT security auditor).
I heard about Grex several years ago, but was encouraged to join and actually
find out about the place and community by my friend and fellow-SDF member
tfurrows. I'm looking forward to learning.
I hope it was alright for me to borrow this space to introduce myself.
Sincerely yours,
--
David Meyer
Takarazuka, Japan
papa@grex.org
|
| 37 responses total. |
tod
|
|
response 1 of 37:
|
Jan 27 15:10 UTC 2017 |
Hello David
I'm interested in your IT security auditing. What are some of the
standards and controls you are encountering in Japan?
|
tfurrows
|
|
response 2 of 37:
|
Jan 27 17:28 UTC 2017 |
Welcome papa, very glad to see you on here! Post all you like to bbs, it could
use the activity :) saw you in party as well, hope I'll catch you there live
someday. If you're interested in some coding, there are some thoughts on
changing up party to be a little more friendly... plenty to do here with some
time and energy if one wants to. The staff here are pretty open to new ideas,
so definitely share them!
|
papa
|
|
response 3 of 37:
|
Jan 27 18:04 UTC 2017 |
Neonicontinoid, our company and a few of its larger subsidiaries are required
report under the Japan version of SOX, but most of our subsidiaries are so
small that we have a less formal process to help them implement minimal IT
security controls like malware controls, vulnerability controls, information
leakage countermeasures, etc.
|
nharmon
|
|
response 4 of 37:
|
Jan 30 18:14 UTC 2017 |
Hi David, welcome to Grex!
|
papa
|
|
response 5 of 37:
|
Jan 30 18:18 UTC 2017 |
Thank you!
|
papa
|
|
response 6 of 37:
|
Feb 3 04:09 UTC 2017 |
I guess this is as good a place as any for a newbie question.
Grex and M-net seem like such similar systems (purpose,
technology, user base), I wonder why there were two systems in
the first place, and why the two continue to be maintained in
parallel.
|
tonster
|
|
response 7 of 37:
|
Feb 3 17:29 UTC 2017 |
Wow, that is a great question, and a very loaded one as well. You'd get
a lot of different answers asking on each system, but Jan Wolter, who
was a great guy, wrote a history of conferencing awhile back that gave a
lot of the answers. Read about it at
http://www.unixpapa.com/conf/oldhistory.html.
|
papa
|
|
response 8 of 37:
|
Feb 3 21:04 UTC 2017 |
That is an interesting history. I should have guessed politics was behind it.
Great domain name, unixpapa.com. Too bad the author passed away in 2015.
|
papa
|
|
response 9 of 37:
|
Feb 4 00:23 UTC 2017 |
tl;dr
Grex was formed my a group of dissident M-net users over a dispute with the
then-administrator of M-net. The two systems are similar because they started
as a single system/community.
|
tfurrows
|
|
response 10 of 37:
|
Feb 4 01:51 UTC 2017 |
I saw a while back that party's source was on unixpapa.com, and I thought
maybe that had something to do with you :) I guess not, but it could have
easily been.
|
tod
|
|
response 11 of 37:
|
Feb 7 00:44 UTC 2017 |
re #9
People were trying to make money off of an open source intellect.
There were egos and nepotism.
It was fun!
|
papa
|
|
response 12 of 37:
|
Feb 7 09:18 UTC 2017 |
The history of the Internet in microcosm.
|
walkman
|
|
response 13 of 37:
|
Feb 8 00:31 UTC 2017 |
It's all fun and games until GeoCities closes.
|
tod
|
|
response 14 of 37:
|
Mar 1 00:39 UTC 2017 |
I need to identify which words in a list do not exist in in a file called
widgetlist. Can I create a pattern file called "widgets" with each widget in
it on their own line; then, grep against a file called "widgetlist" to see
which widgets are not in it?
grep -fL widgets widgetlist
|
papa
|
|
response 15 of 37:
|
Mar 1 04:47 UTC 2017 |
I don't think you can do it with one grep command. You
have to check each line of widgets for no match.
In bash or sh, something like this should work:
cat widgets |while read w; do grep -q $w widgetlist; if
test $? -eq 1; then echo $w; fi done
That runs grep for each line in widgets & detects no match
by checking for exit code ($?) of 1.
|
papa
|
|
response 16 of 37:
|
Mar 1 04:52 UTC 2017 |
Same code "pretty-printed" instead of one-lined:
cat widgets | while read w
do
grep -q $w widgetlist
if [ $? -eq 1 ]
then
echo $w
fi
done
|
unicorn
|
|
response 17 of 37:
|
Mar 1 05:39 UTC 2017 |
Actually, that's what the -f option is for, but if you're looking for
the widgets that aren't in the file instead of the ones that are, you
need to use -v with it:
grep -vf widgets widgetlist
If you use the -v and -f together, make sure the v comes before the f,
since widgets is an argument for the -f option. If you use -fv, you'll
be grepping for the letter v in both files, which isn't what you want.
You could also use:
grep -v -f widgets widgetlist
or
grep -f widgets -v widgetlist
|
unicorn
|
|
response 18 of 37:
|
Mar 1 06:04 UTC 2017 |
I just reread resp:14, and I think you want the reverse of what I said.
It should be:
grep -vf widgetlist widgets
That will find which lines are in widgets that aren't in widgetlist.
|
kentn
|
|
response 19 of 37:
|
Mar 1 16:49 UTC 2017 |
The unix comm command will also tell you whnt lines are in common or not
between two sorted lists (files). Lots of options (e.g. in one list and
not the other).
|
unicorn
|
|
response 20 of 37:
|
Mar 2 03:17 UTC 2017 |
I also misstated what -fv would do, if mistakenly used instead of -vf.
I said it would grep for the letter v, but it would actually look for
a pattern file called v to find its patterns to match. Sorry for the
confusion.
|
tod
|
|
response 21 of 37:
|
Mar 4 04:54 UTC 2017 |
re #16
super thanks
re #19
How would you script that?
Hadn't thought of comm
|
kentn
|
|
response 22 of 37:
|
Mar 5 02:00 UTC 2017 |
Here is an example:
widgets:
widget1
widget2
widget3
widget8
widgetlist:
widget1
widget2
widget3
widget4
widget5
widget6
widget7
#Print only lines present in both file1 and file2.
comm -12 widgets widgetlist
widget1
widget2
widget3
#Print lines in file1 not in file2, and vice versa
comm -3 widgets widgetlist
widget4
widget5
widget6
widget7
widget8
Scripting might include sorting the two lists, but the comm
command itself is pretty easy.
|
deejoe
|
|
response 23 of 37:
|
May 30 00:15 UTC 2017 |
The Debian package 'moreutils' has a command 'combine' that apparently can
be used for this sort of thing. It's probably available for other systems,
or from source (of course).
|
cross
|
|
response 24 of 37:
|
May 30 00:53 UTC 2017 |
`moreutils` is actually the GNU package name. I added it on grex.
|