LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 11-28-2002, 08:17 AM   #1
nero64
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, 08:39 AM   #2
0x0001
Member
 
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.
e.g.:
here.txt contains
ls -1
echo "----------------"
df -h
echo "----------------"
exit

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.
 
  


Reply


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 11:16 AM
Iptables thingy borisation Linux - Networking 1 02-18-2005 06:43 AM
Network thingy Pedroski Linux - Hardware 5 06-13-2004 12:00 PM
what is wrong with this pointer thingy Longinus Programming 1 02-25-2004 07:13 PM
ISP thingy flipboi Linux - Newbie 9 10-24-2003 11:43 PM


All times are GMT -5. The time now is 08:37 PM.

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