LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 08: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, 10:12 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
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, 05: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, 02:03 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
What a bizarre use of a forum...
 
Old 07-02-2008, 03: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, 04:29 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 06:52 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
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, 06:54 PM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
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, 03:56 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

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


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

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

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