the last thing you did!

  • Christian Chat is a moderated online Christian community allowing Christians around the world to fellowship with each other in real time chat via webcam, voice, and text, with the Christian Chat app. You can also start or participate in a Bible-based discussion here in the Christian Chat Forums, where members can also share with each other their own videos, pictures, or favorite Christian music.

    If you are a Christian and need encouragement and fellowship, we're here for you! If you are not a Christian but interested in knowing more about Jesus our Lord, you're also welcome! Want to know what the Bible says, and how you can apply it to your life? Join us!

    To make new Christian friends now around the world, click here to join Christian Chat.
W

wwjd_kilden

Guest
yup

you do

grep "what you want to find" filename.end

and then it returns all lines in that file matching "what you want to find"

but I want it to match that AND any IP adress -,- :p
 
I

ilovehillsong

Guest
I think I actually got that...no, its gone.

Can't you just set it to search everything?
 
W

wwjd_kilden

Guest
well yes, but the thing is:
if I search for <ip> and <string>

it finds

string
ip and string

which is OK, but I need something to count ONLY ip and string

..somehow :p
 
I

ilovehillsong

Guest
lol, your computer looks for string!!:D:D:D

what is computer speak for "and nothing else"?
 
W

wwjd_kilden

Guest
hehe, depends on the programming language :p
if I could use & it should in theory rule out the other stuff, but it don't work that well with grep -,-
HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
this is how it looks:

./ukes7.sh "melding" les.txt # looks for melding in les.txt
128.39.12.98 39 en melding her
melding om noe annet 102.34.121.4
en melding
melding

finds three lines... it should count 1 line ..... :p
 
I

ilovehillsong

Guest
what does melding mean? Its in there a lot.
 
W

wwjd_kilden

Guest
it just means "message"

it is simply a test file to see if I find what I'm looking for (rather than "everything else" as you put it
 
I

ilovehillsong

Guest
...computers are quite complicated, aren't they...
 
W

wwjd_kilden

Guest
yeah, I'm starting to get less angry at my computer when it acts uo, now that I know how much that actually has to go right for it to work :p
 
I

ilovehillsong

Guest
and it only knows the numbers 0 and 1 ...its quite impressive really...
 
W

wwjd_kilden

Guest
yeah

technically, it originally don't know the numbers either, it know either small bump or larger bump, charge or no/ lower charge ....
 
I

ilovehillsong

Guest
like, something existing and something not existing?
 
W

wwjd_kilden

Guest
kinda

computers store data with either magnetism (diskette, tape), burning dents in a layer (CD, DVD, ROM) or electricity (RAM)
* someone correct me if I am saying something wrong :p

all these are read as on/off ..or 1/0 low or no charge is 0, slightly higher charge is 1, dent is 1 (I think) no dent 0 same with magnetism
 
I

ilovehillsong

Guest
lol, yes, not out of boredom, just not understanding. Don't worry, not everyone can be a computer genius like you!!:D
 
W

wwjd_kilden

Guest
lol, I feel like a idiot every time I try to make a program
 
C

christiancollegegirl

Guest
Don't worry about it Hillsong, I don't understand any of it either.
 
N

notthatmatt

Guest
Fell asleep reading my bible then woke up and ended up here...
 
B

Belgian_Pilot

Guest
kinda

computers store data with either magnetism (diskette, tape), burning dents in a layer (CD, DVD, ROM) or electricity (RAM)
* someone correct me if I am saying something wrong :p

all these are read as on/off ..or 1/0 low or no charge is 0, slightly higher charge is 1, dent is 1 (I think) no dent 0 same with magnetism
RAM uses capacitors to 'store' an electric charge. So you could say that a capacitor is an electric memory. Charged = 1, uncharged = 0.