LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Commands Ledbury/Help (https://www.linuxquestions.org/questions/linux-newbie-8/linux-commands-ledbury-help-652934/)

klanz 07-01-2008 07:42 PM

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"

win32sux 07-01-2008 09:12 PM

Quote:

Originally Posted by klanz (Post 3200841)
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?

klanz 07-02-2008 04:25 AM

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.

acid_kewpie 07-02-2008 01:03 PM

What a bizarre use of a forum...

klanz 07-02-2008 02:52 PM

Format and editing
 
Formatting use one of these commands
fdformat
mount
umount

Editing use one of these commands
vi
pico

Hope this helps Mark

pixellany 07-02-2008 03:29 PM

Quote:

Originally Posted by acid_kewpie (Post 3201830)
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.

XavierP 07-02-2008 05:52 PM

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?

XavierP 07-02-2008 05:54 PM

Quote:

Originally Posted by klanz (Post 3201937)
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.

acid_kewpie 07-03-2008 02:56 AM

Wonder how you use umount to format a disk. top quality information there... Hope the cheating works out for you.

XavierP 07-03-2008 06:08 AM

Also, how do you use pico if pine isn't installed??


All times are GMT -5. The time now is 04:16 PM.