You are not logged in. Login Now
 0-6   6-30   31-37        
 
Author Message
25 new of 37 responses total.
papa
response 6 of 37: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   Feb 7 09:18 UTC 2017

The history of the Internet in microcosm.
walkman
response 13 of 37: Mark Unseen   Feb 8 00:31 UTC 2017

It's all fun and games until GeoCities closes.
tod
response 14 of 37: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   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: Mark Unseen   May 30 00:53 UTC 2017

`moreutils` is actually the GNU package name. I added it on grex.
ryan
response 25 of 37: Mark Unseen   Nov 11 12:58 UTC 2018

often times `less` is `more`

walkman
response 26 of 37: Mark Unseen   Sep 25 11:20 UTC 2019

We can be heroes. Just for fifteen minutes.
https://tinyurl.com/y3oscsgm
walkman
response 27 of 37: Mark Unseen   Oct 5 23:06 UTC 2019

https://www.youtube.com/watch?v=WrHldIbkeZw
tod
response 28 of 37: Mark Unseen   Oct 12 05:03 UTC 2019

re #26
She Called Aspergers Her Superpower
Each Parent Organ Grinders
https://www.youtube.com/watch?v=5zLU_6nBc4E
walkman
response 29 of 37: Mark Unseen   Oct 21 16:40 UTC 2019

The idea that we must prop up a mentally ill teenage girl as an 
authority on climate science is so fundamentally absurd. 
Then again, she is also being propped up like a climate messiah. 
Does that work for all 16 year old girls? 
Where does one apply to speak to the UN Assembly?

https://tinyurl.com/y2kw6rew
cross
response 30 of 37: Mark Unseen   Oct 21 17:42 UTC 2019

I found her annoying. Doesn't mean she's wrong, though. The
science really is settled; she's just pissed in a weird way
that people don't take that seriously.
 0-6   6-30   31-37        
Response Not Possible: You are Not Logged In
 

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss