Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-28-2002, 07:17 AM   #1
LQ Newbie
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Rep: Reputation: 15
< thingy

I know what > and >> do but can somebody tell me what < does and give me an example.
Old 11-28-2002, 07:39 AM   #2
Registered: Sep 2002
Distribution: Slackware 8.1
Posts: 84

Rep: Reputation: 15
files used with < are called here files, < redirects standard input to the command.
here.txt contains
ls -1
echo "----------------"
df -h
echo "----------------"

try sh < here.txt

the lines in here.txt will be used in sh as if a user where entering them.

as such herefiles are the complement to > which redirect standard output.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting there TAR.GZ thingy jymmi Linux - Newbie 9 03-30-2005 10:16 AM
Iptables thingy borisation Linux - Networking 1 02-18-2005 05:43 AM
Network thingy Pedroski Linux - Hardware 5 06-13-2004 11:00 AM
what is wrong with this pointer thingy Longinus Programming 1 02-25-2004 06:13 PM
ISP thingy flipboi Linux - Newbie 9 10-24-2003 10:43 PM

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration