Search Results

Search: Posts Made By: MoreCowbell
Forum: Programming 06-28-2012
1,288
Posted By MoreCowbell
I was hoping for a more generalized discussion. ...
I was hoping for a more generalized discussion. My code is full of so many oddball things I'd have to try to explain... at its root it's just simple calculations, like:

pseudocode:

<?php...
Forum: Programming 06-28-2012
9,767
Posted By MoreCowbell
I love that this is a thoroughly discussed...
I love that this is a thoroughly discussed subject on this forum.
1,142
Posted By MoreCowbell
neat. Thanks.
neat. Thanks.
1,142
Posted By MoreCowbell
Thank you - would you also use sed if performing...
Thank you - would you also use sed if performing the same string manipulation on a variable in a script?
Forum: Programming 06-28-2012
1,288
Posted By MoreCowbell
Generic speed question (PHP vs.)
Hi,

On a hosted linux environment which I have very little control over, I have a PHP script that takes in X number of floats, performs Y number of simple recursive arithmetic calculations, and...
1,142
Posted By MoreCowbell
Return all characters to the left of the last delimeter of each line
Hello,

Working on a ksh script and a little stumped... how can I return all characters to the left of the last delimeter per line in a file, skipping any lines without that delimeter?

ie,...
2,670
Posted By MoreCowbell
One last question relevent to this post: If...
One last question relevent to this post:

If the entry is NOT found, how can I echo "not found"?

This seems like it should be profoundly simple, yet I've been trying to get it to work and I'm...
2,670
Posted By MoreCowbell
Fantastic, thank you very much for your help.
Fantastic, thank you very much for your help.
2,670
Posted By MoreCowbell
Sorry, I should have been more explicit. ...
Sorry, I should have been more explicit.

I'm using bash, but the script is using ksh (I did copy/paste your example).

I changed the first line to reference bash and it does work,...
2,670
Posted By MoreCowbell
I copy/pasted. Bash ver 3.00.16(1) ...
I copy/pasted.

Bash ver 3.00.16(1)
Running on AIX5.1
2,670
Posted By MoreCowbell
Thank you for the quick reply. I get the...
Thank you for the quick reply. I get the following output:



./script.sh[10]: "${LINE:0:1}": bad substitution



:confused:
2,670
Posted By MoreCowbell
Getting category when given the variable from external file to shell script
Hi, I have a script that interacts with a config file in the format:


[CategoryA]
file1.txt
file2.txt

[CategoryB]
file3.txt
file4.txt
file5.txt

[CategoryC]

[CategoryD]...
Showing results 1 to 12 of 12

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