LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-02-2008, 06:47 PM   #16
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60

They are css controlled. The nice thing about this is that if you create a userContent.css file for Firefox, then you can override the defaults. All code or pre tags I see, on any website, have the size, color and font I prefer. It makes things much easier on my eyes. See here for more info: http://www.mozilla.org/unix/customizing.html
 
Old 12-02-2008, 06:49 PM   #17
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Double post - sorry.
 
Old 12-02-2008, 08:08 PM   #18
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by keysorsoze View Post
Code:
Sweet Thanks I will use this now\!

Coluix are you a programmer? I am wondering because I am a sysadmin right now and I honestly don't know half of what you guys know how do you get to the level where you can solve virtually any problem members dish at you? I hope to get senior status one day.

Thanks
The best way is by doing what you are doing now. Helping other members. I have learned more by helping others and trying to solve their problems while creating my own problems to solve. Also another way is just scan the forums and see what questions where asked and how they were solved. You will never know it all. I have really come to accept that learning + computers = life long journey with plenty of side stops along the way.
 
Old 12-02-2008, 08:20 PM   #19
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 keysorsoze View Post
Another great sed replacement by pixellany. Pixellany do you make uber dollars? I have been patrolling for all sed tips on this forum and your solving problems on all of them. Are you a programmer? Just curious of what all senior members do for a living? Please give advise if possible and how long you have been working with sed to be able to solve almost any problem.
I make only modest dollars, and not for anything to do with Linux and programming. In fact, I would be a terrible programmer. I am an aerospace systems engineer, with emphasis on camera systems.

I somehow got attached to SED---maybe because I like puzzles. I have only been using SED for 2years, but have been marginally competent for less than a year.
 
Old 12-02-2008, 08:32 PM   #20
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Not to rain on the parade unduly, but the sed command doesn't seem to me to flip the lines (it also leaves a trailing final comma). Output:
Code:
telemachus ~ $ sed -n -e '{s/$/,/;H}' -e '${x;s/\n/ /gp}' < animals 
 mouse, kitten, chicken, roster, screen, ball, cat, dog,
(I'm using GNU sed version 4.1.5 if that helps.)

Last edited by Telemachos; 12-02-2008 at 08:48 PM.
 
Old 12-02-2008, 11:29 PM   #21
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 Telemachos View Post
Not to rain on the parade unduly, but the sed command doesn't seem to me to flip the lines (it also leaves a trailing final comma). Output:
Code:
telemachus ~ $ sed -n -e '{s/$/,/;H}' -e '${x;s/\n/ /gp}' < animals 
 mouse, kitten, chicken, roster, screen, ball, cat, dog,
(I'm using GNU sed version 4.1.5 if that helps.)
Well, darn!!
I missed the part about flipping the words. (Getting rid of the last comma is easy.)

Once we have the comma-separated list, I assume that AWK could do the rearranging. I'll bet that SED can do it also, but it's not jumping out at me.

But then, OP has gone missing, so do I really have to work on this??....
 
Old 12-02-2008, 11:56 PM   #22
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Here's a start...
Code:
sed -r 's/([^ ]+) ([^ ]+)/\2 \1/g' filename
This does pairwise reversal of word order, eg

one two three four
becomes:
two one four three

1 2 3 4 5
becomes
2 1 4 3 5
 
Old 12-03-2008, 06:21 AM   #23
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by pixellany View Post
But then, OP has gone missing, so do I really have to work on this??....
Not as far as I'm concerned, but then again I'm happy because I've already solved it for Perl. So, I guess it all depends on how much you want to solve it for sed. It looks like you've already done it...
 
  


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
bash: execute a semicolon separated list of commands within string Meson Linux - General 3 10-01-2008 11:25 PM
help with comma separated values and what should be a simple script. zaber Programming 10 03-06-2008 12:58 PM
bash syntax: looping through a comma-separated list David the H. Linux - General 10 09-06-2007 10:23 AM
Sorting a list of words in LISP! Hady Programming 1 05-01-2004 03:29 PM
Reading comma-separated data from file MeLassen Programming 4 04-04-2004 02:41 PM

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

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