d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Bash Operator '<'
Add Reply New Topic New Poll
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 4 2012 06:56am
I know grep/pipe/etc and the difference between '>' and '>>', but I don't know how to use '<'. My problem is that googling the char '<' doesn't works very well... I need a simple example in C how to read in from a file with '<'. Any suggestions where I could find something easy?

The file to read in looks like this:
Code
1,3
3,7
Banned
Posts: 2,525
Joined: Jan 2 2012
Gold: 0.01
Warn: 10%
Jun 4 2012 08:54am
Code
./foo < bar


is essentially the same as
Code
cat bar | ./foo


- you just read from stdin

This post was edited by ikusus on Jun 4 2012 08:54am
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 4 2012 11:09am
thanks!
can be closed!
Member
Posts: 21,407
Joined: Jun 15 2007
Gold: 120,303.00
Jun 6 2012 02:53pm
Quote (ikusus @ 5 Jun 2012 00:54)
Code
./foo < bar


is essentially the same as
Code
cat bar | ./foo


- you just read from stdin


Quote (ikusus @ 7 Jun 2012 06:51)
Quote (dos350 @ 6 Jun 2012 21:50)
Quote (ikusus @ 7 Jun 2012 06:47)
Quote (dos350 @ 6 Jun 2012 21:46)
Quote (ikusus @ 7 Jun 2012 06:45)
Quote (dos350 @ 6 Jun 2012 21:44)
i abused u in thread but i heard arduano is cool and i vouch u 4 it, no rage plx sizing irl 4u


english, do you speak it


siz 4u please no abuse but im sad u close my 3k view topic no abuse in future ty


http://www.youtube.com/watch?v=mmDTLphIVY


no abuse ty http://forums.d2jsp.org/topic.php?t=57526075&f=122

Views: 2895


Yes I remember that topic where i owned you, it was good laugh while it lasted, sadly some moderator closed it. I'd make even more fun of you if not for that...

Anyway, what the hell do you even want from me? I'm not interrested in anything you say so... bye bye nerd.


ur the nerd , sizing irl 4 the info~

fyi u didnt own me, u dodged me for like over 14 pages and i owned u on most of those , sizing again, irl , for the info


NOTT ALLOWED 2 MSG THIS USER~~~~~~~~~
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll