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:
...
Type: Posts; User: Greeface; Keyword(s):
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:
...
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)
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...
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...
I think I got it.
$(eval "echo \$$(echo VAR${i})")
I don't really understand what's going on here, but oh well.
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
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
I'll give that a shot, thanks.
Edit: Works like a charm, why didn't I think of this? :)
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...
Hmm, I get dependency problems. Any suggestions?
EDIT: Nevermind, I got it going. Thanks for the howto.
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'
You can also highlight text in a webpage and drag it to your desktop to create a text file
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...
Ah, actually I just ran it a second time a few moments ago and it worked like a charm! Awesome script, thanks!
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...
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.
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...
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...
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...
EDIT: Woops, nevermind, what i said before in this post wouldn't work.
Okay, i will look for this file and post back. I am now using Cedega, and I still get the same problem
Thanks
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...
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 ).
It is still all flickery for me, even after I added that part to my xorg.conf file. What gives?
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...