Home / Software / BSD, Linux, and Unix / need help with linux command
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: need help with linux command  (Read 2657 times)
fm_hyudin
Topic Starter
Greenhorn



Posts: 8


« on: June 16, 2008, 01:16:52 AM »

Hi..

thanks alot for reading my question firstly.

i need to do a demonstration on the following question and i really don't know what command to use for these.i need to do this demo using linux terminal.plz help me and thanks in advance.

Append a statement, namely “test” to the file named “linux”.


I tried to google looking what is the meaning for append and it says ;

To place after, or at the end of, a character, a line, or a file. In the vi editor, certain commands let you append text in a document. In the Bourne and C shells, the symbol )) allows you to append output to an existing file (or create a new file if the file does not yet exist).

plz explain and help me.thanks alot for all your help.
IP logged
fm_hyudin
Topic Starter
Greenhorn



Posts: 8


« Reply #1 on: June 16, 2008, 06:20:45 AM »

plz help ???
IP logged
TheEmperor
Intermediate



Posts: 204


The Tech Empire
« Reply #2 on: June 16, 2008, 08:14:11 AM »

echo test >> linux

That will append the word test to the end of a file named linux.
IP logged

The Emperor
Ruling over Technology since 1998
www.TechEmperor.com
fm_hyudin
Topic Starter
Greenhorn



Posts: 8


« Reply #3 on: June 16, 2008, 06:25:35 PM »

thanks alot mate... ;D :D

just another doubt:

how to check whether the name test already added?

is there any other command to check this.
IP logged
fm_hyudin
Topic Starter
Greenhorn



Posts: 8


« Reply #4 on: June 17, 2008, 12:28:01 AM »

plz help.....
IP logged
TheEmperor
Intermediate



Posts: 204


The Tech Empire
« Reply #5 on: June 17, 2008, 07:08:01 AM »

Checking to see if a file exists is slightly more complicated, and since this sounds like a homework assignment you're going to have to learn to use google on your own.
IP logged

The Emperor
Ruling over Technology since 1998
www.TechEmperor.com
Pages: [1] - (Top) Print 
Home / Software / BSD, Linux, and Unix / need help with linux command « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.095 seconds with 20 queries.