Find the answer to your Linux question:

Search:

Type: Posts; User: scm; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: sed help

    by scm
    Replies
    7
    Views
    1,563

    The simplest sed pattern would be: sed ...

    The simplest sed pattern would be:

    sed "/^$ACCOUNT:/s/$/_no/"
  2. Replies
    16
    Views
    1,899

    Why are you running all your commands in...

    Why are you running all your commands in backticks with echo?:?
  3. Replies
    5
    Views
    6,923

    You can do it all with awk as follows: awk...

    You can do it all with awk as follows:

    awk "-F=" '/^animal=/ {print $2}' Names.txt

    Or prefix your awk version with the output from the grep you've done:

    grep '^animal=' Names.txt | awk...
  4. You write a post saying what the problem was, how...

    You write a post saying what the problem was, how you found it, and what you did to fix it. Then it's helpful to others.
  5. Replies
    17
    Views
    3,027

    Your reaction says more about you than the...

    Your reaction says more about you than the motives of the person you're ranting at.
  6. Thread: Binary files

    by scm
    Replies
    5
    Views
    2,556

    No such thing as "binary files" in Linux, just...

    No such thing as "binary files" in Linux, just "files". For question 2, the content will determine how you "read" them.
  7. Replies
    13
    Views
    5,038

    The error was installing Windoze onto a Linux...

    The error was installing Windoze onto a Linux machine, you should always put Windoze on first as it insists on taking over your machine - best to let it do that before you've put anything of yours on...
  8. Replies
    4
    Views
    1,052

    In what way is it "unavailable"? Unmounted? ...

    In what way is it "unavailable"? Unmounted? Permission denied?
  9. Replies
    5
    Views
    1,189

    I ran alsamixer and saved the settings to...

    I ran alsamixer and saved the settings to overcome its previous habit of starting up muted. That's on an elderly Fedora system, though (though it wasn't elderly when I installed it!).
  10. Replies
    4
    Views
    1,799

    Would you need a small delay before you cat the...

    Would you need a small delay before you cat the fifo to allow the data to flow into the remote pipe? If the cat starts while the pipe is empty it may think it's terminated.
  11. Replies
    3
    Views
    2,071

    I guess everyone has their own favourite way and...

    I guess everyone has their own favourite way and what works for one may not work for another. I use the event as the top level, and the specific date (assuming multiple occurrences of the event) as...
  12. Replies
    16
    Views
    3,152

    If all you're doing is loading the shebang line I...

    If all you're doing is loading the shebang line I think it'd be much easier to just map a couple of keys to do the necessary insert - using the scripting method means you have to type more characters...
  13. Replies
    21
    Views
    8,533

    Did you really put "jre" in your...

    Did you really put "jre<version>" in your variables?
  14. Replies
    2
    Views
    1,205

    Easiest way to get the paths is to extract the...

    Easiest way to get the paths is to extract the last field from any line that's not empty or a comment:

    awk '/^ *$/ {next}
    /^#/ {next}
    {print $NF}' /etc/syslog.conf
  15. Replies
    7
    Views
    2,824

    Are your two lists sorted? I think join requires...

    Are your two lists sorted? I think join requires them to be.
  16. It's also good practice to always put your...

    It's also good practice to always put your positional parameters in quotes to avoid syntax errors if someone enters an argument with embedded spaces.
  17. Replies
    8
    Views
    1,847

    I'd be interested to know why you think the OP...

    I'd be interested to know why you think the OP doesn't know the difference between pre- and post-increment operators - in this context I fail to see what difference it makes if you disregard the...
  18. Replies
    7
    Views
    15,270

    Or just use temporary files - setting up a...

    Or just use temporary files - setting up a database for passing a few items of data can be overkill.
  19. Replies
    7
    Views
    2,747

    What does "ls -l /lib/ld-linux.so.2" return? If...

    What does "ls -l /lib/ld-linux.so.2" return?
    If the file is there what does "file -L /lib/ld-linux.so.2" return?
  20. Thread: Creating .sh

    by scm
    Replies
    6
    Views
    2,348

    I'm confused. When I use authorized keys my...

    I'm confused. When I use authorized keys my connection between my computer and the remote host is trusted and doesn't require a password - I thought that was the point of authorized keys?:?
  21. You're on a hiding to nothing trying to do it by...

    You're on a hiding to nothing trying to do it by filename - even if you chose a sensible way to name your files, like using the week number and the year. It's possible to script the deletion of...
  22. Replies
    11
    Views
    3,376

    Glad my suggestion worked for you. Shame you...

    Glad my suggestion worked for you. Shame you apparently didn't bother to read it.:?
  23. Replies
    11
    Views
    3,376

    I don't think he's seeing two prompts in a shell...

    I don't think he's seeing two prompts in a shell window, I think he's seeing two shell windows.

    Can't you just close the windows and do a save session? That would work in Fedora, not sure about...
  24. Replies
    9
    Views
    2,375

    Of course, that presupposes you're using a...

    Of course, that presupposes you're using a distribution that supports apt-get ....
    Oh, and "sudo" doesn't start with a capital 's'.
  25. Replies
    6
    Views
    1,629

    The simplest explanation is that the sound level...

    The simplest explanation is that the sound level defaults to zero when you start up - check with alsamixer as suggested above.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4