Search Results

Search: Posts Made By: gcampton
Forum: Android 10-08-2010
32,522
Posted By gcampton
Says google :s Personally I prefer Nokia due...
Says google :s

Personally I prefer Nokia due to free licensing for commercial products using QT. But then, I'm more than likely a minority. I have no predictions, except that soon this little...
1,221
Posted By gcampton
pfft, stupid plus sign. ---------- Post...
pfft, stupid plus sign.

---------- Post updated at 04:44 PM ---------- Previous update was at 04:39 PM ----------

Thanks guys.
1,221
Posted By gcampton
Date format
Hey, I need to use the date command for arguments to a C++ program. But i need the format to be in %d%m%y, the manual for date doesn't actually say how to format, it just lists the formats. So i...
6,314
Posted By gcampton
why? bourne shell accomplishes this easily. It...
why? bourne shell accomplishes this easily. It was the assignment I did back in November. printf for field widths, functions for each task typically using grep. Test for all command line args, and a...
6,314
Posted By gcampton
100 view and not a single idea :(, Bump!
100 view and not a single idea :(, Bump!
6,314
Posted By gcampton
Need ideas for practice exercises in sh
I did an assignment for sh scripting back in november, and I found it quite fun learning. I would like to retain this knowledge as I'm pretty sure it was my only scripting assignment, from now on in...
12,315
Posted By gcampton
EDIT: woops didn't see there was page2
EDIT: woops didn't see there was page2
5,021
Posted By gcampton
perfect thanks just had to change all my echo...
perfect thanks just had to change all my echo statements using variables to printf. some were already in printf which is why the error were only occurring on some variables.
5,021
Posted By gcampton
I'm thinking that maybe I need to just stick the...
I'm thinking that maybe I need to just stick the arguments into a temp $VAR or file
and then convert back to OLDIFS at bottom of loop and then execute function using the var/file as arguments,...
5,021
Posted By gcampton
I understand that, but that is only in the case...
I understand that, but that is only in the case of while IFS=: read ... what I am saying is I have been told to do it differently in the format of:

OLDIFS=$IFS
IFS=":\n"
I am unsure why...
19,987
Posted By gcampton
or diff... 'man diff ' , I'm pretty sure there's...
or diff... 'man diff ' , I'm pretty sure there's a way to only output differences.
EDIT: probably not so useful...even
$diff --suppress-common-lines file1 file2
still outputs the line numbers...
10,057
Posted By gcampton
there's a number of different ways you can do...
there's a number of different ways you can do this, one example is cut/paste
cut f1 file > tmp1; cut f2 file > tmp2; cut f3 file > tmp3; etc etc
paste tmp1 tmp2 tmp3 tmp4 > file
rm -f tmp*
...
12,315
Posted By gcampton
cat "nothing" | to awk..... dammit beat me...
cat "nothing" | to awk.....

dammit beat me to it by 3 seconds...!
5,021
Posted By gcampton
Another IFS post, [ bourne SH only ] ?
I know there's a large number of posts on this, I have read a number of them. But unable to find specifics.

Scrutinizer showed me a nice trick using IFS in a while loop in a BASH script, however...
6,358
Posted By gcampton
woops.. misread, thanks again
woops.. misread,

thanks again
6,358
Posted By gcampton
Thanks again scrutinizer (and others) you have...
Thanks again scrutinizer (and others) you have definately taught me a lot over the last few days. Only have only last "ambiguous redirect" error occurring which I should be able to figure out and...
6,358
Posted By gcampton
double post, this site has been screwy today ^_^ ...
double post, this site has been screwy today ^_^

EDIT: ok, nevermind I just got it, testing for a line in a file.... which is true so we delete. duh...

EDIT: why does my head always feel like...
6,358
Posted By gcampton
I don't really get that... the -q option states:...
I don't really get that... the -q option states: Quiet; do not write anything to standard output. Exit immediately with zero status if any match is found, even if an error was detected. Also see the...
6,358
Posted By gcampton
hmmm woops I just retested to make sure I...
hmmm woops
I just retested to make sure I didn't have a typo or something.
and realized the first time round i never actually tested to make sure i could delete an invalid item. It works we just...
6,358
Posted By gcampton
that didn't work for me
that didn't work for me
6,358
Posted By gcampton
do you mean after I grep the line? I was...
do you mean after I grep the line?

I was thinking I could test the string is non-zero eg.


if [ -z (grep "${1}${2}" $dbfile) ]
then
echo "Error:not deleted:product does not exist in...
6,358
Posted By gcampton
grep functions, how to test if succeeded
Hello ...again.
I am stuck on this part, I have a loop with processes an operations file.
and calls different functions depending on what is in loop, which processes a database file...


#so far...
1,721
Posted By gcampton
wth...can't read my post
something is wrong, I can read every post except mine. Very weird, and extremely anoying I can see replies to my post but can't view them, instead it keeps trying to save the page and open it from...
24,430
Posted By gcampton
man expr, expr evaluates mathematical...
man expr, expr evaluates mathematical expressions in sh scripts.
1,957
Posted By gcampton
How to send a function all command line args?
I have this code, I thought it would automatically know the args sent to script when called from shell. But it seems to not see any...


main script:

. args
. errors
. opt
. clean
...
Showing results 1 to 25 of 41

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