Search Results

Search: Posts Made By: killer54291
5,792
Posted By killer54291
drl, that works perfectly, thank you.
drl, that works perfectly, thank you.
5,792
Posted By killer54291
2 things - I wouldn't know how to go about...
2 things - I wouldn't know how to go about including that in ONLY A PERL SCRIPT and the input is a variable, not a file.
5,792
Posted By killer54291
Well, sadly, it doesn't seem to work. I used some...
Well, sadly, it doesn't seem to work. I used some test text with the trim thing you linked to, did not work with newlines. look:
sub trim{
my $string = shift;
$string =~...
5,792
Posted By killer54291
If I understand correctly, what that is doing is...
If I understand correctly, what that is doing is removing what you tell it to remove, am I right? If I am right, I can't use that, the damn file is 2149 lines, and it always changes.

If that's not...
5,792
Posted By killer54291
Perl print between 2 patterns
I have been unable to find this anywhere; I have a multiline variable, and I want to print the text between two patterns in that variable. So the variable is

My
real
name
is
not
DeadmanAnd I...
1,568
Posted By killer54291
I can try that but is there anything easier to...
I can try that but is there anything easier to use like bash -x?
1,568
Posted By killer54291
Perl execution debugger
If this is the wrong forum, move it. It seemed like the best.
Does anyone know of a perl thing that does the same thing as bash -x except for perl? I know I can output the information I want at the...
1,545
Posted By killer54291
Ahhhhh man not again. What a stupid mistake....
Ahhhhh man not again. What a stupid mistake. Thanks.
1,545
Posted By killer54291
Blank as variable/output when run from command line
When I run this:
PDHDURL=`/usr/bin/curl --silent http://www.phdcomics.com/comics.php | /usr/bin/grep -o http://www.phdcomics.com/comics/archive/.*.gif | head -1`
echo -e "$PHDURL"
It is totally...
10,751
Posted By killer54291
Well look at that. How stupid of me. That did it,...
Well look at that. How stupid of me. That did it, thanks.
10,751
Posted By killer54291
Ah, ok. Damn, the error is still unexplained.
Ah, ok. Damn, the error is still unexplained.
10,751
Posted By killer54291
Scrutinizer, Well until this works,...
Scrutinizer, Well until this works, .previouscm.txt is just a text file with random letters and numbers. Once this script works, I will add a few lines at the bottom writing all of the current url's...
10,751
Posted By killer54291
Bash too many arguments error
Hello, I've got this little script that gets a bunch of comics and puts them in an html file. However, when I check that the comic URL is there and that it's a new one, I get the "too many arguments"...
Forum: OS X (Apple) 09-06-2010
2,494
Posted By killer54291
Bash prompt wraparound
I'm using a custom prompt with PS1 in my .profile. It is
PS1="\[\e[0;35m\]\u@\e[0;31m\h\[\e[m\]\[\e[0;36m\]:\W\[\e[m\] \[\e[0;32m\]\$\[\e[m\] \[\e[0;37m\]"

and it works well, as you can see,...
1,429
Posted By killer54291
ah thank you. now there is no error and it also...
ah thank you. now there is no error and it also removes duplicates. I was changing things yesterday and some of the lines are messed up, and the date didnt change for 5 entries, and before it showed...
1,429
Posted By killer54291
thanks, frans, thats exactly what I wanted. I'll...
thanks, frans, thats exactly what I wanted. I'll just change the date format. thanks for the help.

---------- Post updated at 11:42 PM ---------- Previous update was at 05:34 PM ----------
...
1,429
Posted By killer54291
Organizing a log
I have a bunch of log files generated from a shell script, its all of my facebook friends and if theyre logged in. Each file is a different person. It runs every 5 minutes. The log file is just the...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 08:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy