LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-01-2008, 07:42 PM   #1
klanz
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
Linux Commands Ledbury/Help


Single Command creates file words that contatins 100 lines with numbers

for ((i=1 ; i <=20; i++)) ; do echo "This word is word" > words.txt

VI editors

vi words.txt

Zebra the word

Change all cournces of word to WORD on each line
:%s/words/WORDS/g

Delete twenteeth to 19th
:20,19d

Pounds to riches

write a command which counts the number of empty lines

grep -c^$ and file name

write a command which displays all of the peoples accounts in the file

grep ^[0-9] file name

write a command which shows 3rd and 1st lines

cut -d":" -f1,3 file name

name string

echo $str | tr 'a-z' 'A-Z'

date + "A,%B_:y"
 
Old 07-01-2008, 09:12 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by klanz View Post
Single Command creates file words that contatins 100 lines with numbers

for ((i=1 ; i <=20; i++)) ; do echo "This word is word" > words.txt

VI editors

vi words.txt

Zebra the word

Change all cournces of word to WORD on each line
:%s/words/WORDS/g

Delete twenteeth to 19th
:20,19d

Pounds to riches

write a command which counts the number of empty lines

grep -c^$ and file name

write a command which displays all of the peoples accounts in the file

grep ^[0-9] file name

write a command which shows 3rd and 1st lines

cut -d":" -f1,3 file name

name string

echo $str | tr 'a-z' 'A-Z'

date + "A,%B_:y"
What is all this? What is your question?

Any why does this look like some sort of homework assignment?
 
Old 07-02-2008, 04:25 AM   #3
klanz
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I have been working with my friends in Ledbury and they had asked me some questions regarding some of the Linux commands above. So all of them could see what them I have posted them here.
 
Old 07-02-2008, 01:03 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
What a bizarre use of a forum...
 
Old 07-02-2008, 02:52 PM   #5
klanz
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Format and editing

Formatting use one of these commands
fdformat
mount
umount

Editing use one of these commands
vi
pico

Hope this helps Mark
 
Old 07-02-2008, 03:29 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by acid_kewpie View Post
What a bizarre use of a forum...
I was thinking more like "rude" or maybe "illegal"....
Seriously, klanz: This is not why LQ is here. Even if the rules allow this, you are violating the intent.
 
Old 07-02-2008, 05:52 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
All members have their own blog space: http://www.linuxquestions.org/linux/blog/ and I would very much suggest that that would be the best place for this. Or even, maybe your school has some web space you could use?
 
Old 07-02-2008, 05:54 PM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Quote:
Originally Posted by klanz View Post
Formatting use one of these commands
fdformat
mount
umount

Editing use one of these commands
vi
pico

Hope this helps Mark
Why not nano or emacs?

And if you 're just dumping commands on here, why aren't you telling your friends to either read RUTE or get one of the Running Linux or Linux in a Nutshell books? Book reviews are here and I am sure your BFFs would find them useful.
 
Old 07-03-2008, 02:56 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Wonder how you use umount to format a disk. top quality information there... Hope the cheating works out for you.
 
Old 07-03-2008, 06:08 AM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Also, how do you use pico if pine isn't installed??
 
  


Reply



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
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 06:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 06:53 AM
Suse Linux Commands For These Aix Commands? Vaskar Guha Linux - Software 2 12-19-2005 12:45 AM

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

All times are GMT -5. The time now is 01:09 AM.

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
Open Source Consulting | Domain Registration