Search:

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

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Replies
    6
    Views
    350

    Re: Help a noob with sed

    EDIT: I just solved it by piping through tr -d '\r'. Thanks for the help! I'll have to remember that command, Arndt.





    Hmm. When I do cat /path/to/file.txt | od -c it gives me this:

    ...
  2. Replies
    6
    Views
    350

    Help a noob with sed

    I'm trying to append some text to the end of every line in a file. I do this:

    sed -i 's/$/ (Route 704)/' $TEMP1

    and the output looks like this:

    28
    (Route 4)
    48
    (Route 4)
  3. Re: BASH: Referencing variables using variables

    Sure, I'll do my best to describe it. This is a file management script for the file upload section on my personal server. It uses a for loop to look at each of the files in the uploads directory...
  4. Re: BASH: Referencing variables using variables

    Thanks guys, some good info here. Unfortunately these variables are being defined by HTML form info passed to the cgi script, so I can't really use an array to begin with.

    If anyone cares here's...
  5. Re: BASH: Referencing variables using variables

    I think I got it.


    $(eval "echo \$$(echo VAR${i})")

    I don't really understand what's going on here, but oh well.
  6. BASH: Referencing variables using variables

    Not sure if I worded the title correctly. It's easiest to explain with an example...



    VAR="fail"
    VAR1="cool"
    VAR2="neat"

    for i in 1 2 ;
    do
  7. Replies
    374
    Views
    240,500

    Re: HOW TO: install Enemy Territory

    It's hidden because it has a dot in front of it. If using Nautilus hit ctrl+h to see the hidden files.

    /home/user/.etwolf
  8. Replies
    2
    Views
    323

    Re: BASH scripting question

    I'll give that a shot, thanks.

    Edit: Works like a charm, why didn't I think of this? :)
  9. Replies
    2
    Views
    323

    BASH scripting question

    I have a BASH script, and in this script I want to run a command. This command doesn't exit, so I want my script to start the command and then move on leaving the command to run. When the script...
  10. Replies
    52
    Views
    15,646

    Re: HowTo: Update GAIM to Pidgin (Two Easy Steps)

    Hmm, I get dependency problems. Any suggestions?

    EDIT: Nevermind, I got it going. Thanks for the howto.
  11. Replies
    228
    Views
    116,665

    Re: Beginner's Guide to a Sansa e200 MP3 Player

    To add album art you can also make folders for all of your albums then drop in a jpeg of the album art named 'folder.jpg'
  12. Re: DID YOU KNOW: that if you drag a tab from firefox to panel or desktop...

    You can also highlight text in a webpage and drag it to your desktop to create a text file
  13. Replies
    1
    Views
    1,940

    Sauerbraten (Cube 2) Sound Problem

    I just downloaded the game Sauerbraten (or Cube 2), and it runs great other than the sound. I can't figure out why, but the sound worked great once and never did again. I tried killing ESD before...
  14. Re: HowTo: A script to install Firefox 2.0

    Ah, actually I just ran it a second time a few moments ago and it worked like a charm! Awesome script, thanks!
  15. Re: HowTo: A script to install Firefox 2.0

    Tried it on Dapper and it was working good, but then I got
    gpg: requesting key 1AF32821 from hkp server subkeys.pgp.net
    gpg: keyserver timed out
    gpg: keyserver receive failed: keyserver error...
  16. Re: HOWTO: Replace gnome-screensaver with xscreensaver

    I installed the version from Breezy, which looks pretty nice. It is available here. After you install it you should lock the version in Synaptic so it doesn't just get updated again.
  17. HOWTO: Easily find the IP of networked computers (script)

    I have written this tiny script that allows you to type in the hostname of a computer that is on your network, and get it's internal IP. This isn't exactly a big howto, but I find it useful.

    It...
  18. Replies
    6
    Views
    20,905

    Re: GTA - San Andreas resolution problem

    Alright, I have 3 monitors so my xorg.conf file is tweaked. I replaced the current xorg.conf file with the original for 1 monitor that I had backed up, but it still does the same thing. So I am...
  19. Replies
    6
    Views
    20,905

    Re: GTA - San Andreas resolution problem

    Ah, I think you are getting close. I have done some more reasearch, and I think that it's generated once you rn the game. I ran it on my windows machine and changed the settings to 800x600x16 and...
  20. Replies
    6
    Views
    20,905

    Re: GTA - San Andreas resolution problem

    EDIT: Woops, nevermind, what i said before in this post wouldn't work.
  21. Replies
    6
    Views
    20,905

    Re: GTA - San Andreas resolution problem

    Okay, i will look for this file and post back. I am now using Cedega, and I still get the same problem

    Thanks
  22. Replies
    6
    Views
    20,905

    GTA - San Andreas resolution problem

    I tried installing GTA from the DVD, but it didn't work so I installed it on a Windows machine and copied it over. When I try to open it with WINE it says that it "Cannot find 800x600x32 video...
  23. Replies
    4
    Views
    15,827

    Re: How to test your xorg.conf the easy way

    Ah, I will have to use the method next time I am playing with my xorg.conf, having to restart it everytime gets pretty tedious (especially when you suck at editing it :D ).
  24. Replies
    827
    Views
    643,845

    Re: Howto: Get a beautiful Conky 1.4.2 setup

    It is still all flickery for me, even after I added that part to my xorg.conf file. What gives?
  25. Poll: Re: HOWTO setup lirc with homebrew reciever and program your keybindings...

    Ah, I figured it out, I had the old linux-source and linux-headers packages installed and they never got upgraded with the new kernel. I just updated 'em and remade that symbolic link, and then...
Results 1 to 25 of 47
Page 1 of 2 1 2