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 10-20-2004, 12:04 AM   #1
supervillan
LQ Newbie
 
Registered: Mar 2004
Location: Romania
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
shell question


is there any shell command that writes to a file? something like...
$ command file.txt Hello World!
... and then the content of file.txt would be
Hello World!

I needed it badly yesterday so i wrote my own program to do this... but i think there is another way...
 
Old 10-20-2004, 12:09 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
echo 'Hello World!' > file.txt
 
Old 10-20-2004, 12:17 AM   #3
supervillan
LQ Newbie
 
Registered: Mar 2004
Location: Romania
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: 0

hahaha... me = noob
sorry for asking such a dumb question
 
Old 10-20-2004, 12:33 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
It was in no way dumb. Everybody has to learn. Check out these resources.

http://tille.soti.org/training/bash/index.html
http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://www.tldp.org/LDP/abs/html/
http://www.shelldorado.com/
http://gd.tuwien.ac.at/linuxcommand.org/index.php
 
Old 10-20-2004, 07:50 AM   #5
supervillan
LQ Newbie
 
Registered: Mar 2004
Location: Romania
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks. The links are great, especially because i intend to start programming for linux and get involved into a serious open source project . There still is a long way to go though... It's not enough to know c or c++, I still have to learn a lot about linux...

Last edited by supervillan; 10-20-2004 at 07:51 AM.
 
  


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
Shell question satimis Linux - General 5 08-11-2005 10:57 AM
question about lsh shell lucky_dev36 Linux - Newbie 2 01-13-2005 03:30 PM
Shell Scripting Question jester_69 Programming 13 11-05-2003 07:55 PM
c(++) shell question karlan Programming 3 09-14-2003 05:07 AM
question about shell jaylee Linux - General 8 06-22-2003 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration