Search Results

Search: Posts Made By: unclecameron
2,100
Posted By MadeInGermany
Another observation: expr is integer, so the 9...
Another observation:
expr is integer, so the 9 / 5 is always 1. Consider
tempf=`expr 9 '*' $tempfinal / 5 + 32`
or use awk for higher precision (you can do int() to get an integer).
2,100
Posted By looney
If that is the case , then you have to set env...
If that is the case , then you have to set env variables in your script. Just source export PATH=${PATH}:${HOME}/bin (for eg) into your script at the top and it will work.
1,502
Posted By Corona688
Reminds me of the stories I heard of line errors...
Reminds me of the stories I heard of line errors on ancient teletypes creating bizarre filenames.. I couldn't understand how until someone mentioned >'s appearing in the wrong place.

Most...
9,766
Posted By michaelrozar17
If the posted last line is the eof then try sed...
If the posted last line is the eof then try
sed '/^$/,/^$/!d' inputfile > outfile.txt
7,987
Posted By zaxxon
$ awk 'NR==2 {printf("%s",$0)}' RS= infile This...
$ awk 'NR==2 {printf("%s",$0)}' RS= infile
This is the text I need, it may possibly span two lines or more
but it will always have a blank line above and below it.
6,447
Posted By alister
Looking at your code, the first thing that stands...
Looking at your code, the first thing that stands out is that you are using 2-tuples where I suspect it should be a 1-tuple.



data_point[ 'title' ] contains two elements though the intention is...
6,447
Posted By Corona688
Just copy-pasting it as text doesn't tell me what...
Just copy-pasting it as text doesn't tell me what original encoding it had unfortunately. It also won't show bogus nonprinting characters. Could you save it to a file, so you can hexdump -C <...
6,447
Posted By alister
My guess would be that the python mysql client...
My guess would be that the python mysql client has been converting to and sending latin-1 while mysqld has been converting that to utf-8 before writing to the db (since mysqld simultaneously supports...
19,838
Posted By Chubler_XL
To extract your section with sed: sed -n...
To extract your section with sed:

sed -n '/<SECTION1>/,/<\/SECTION1>/p' mydoc.xml
3,588
Posted By birei
Hi, I think it could be enough deleting...
Hi,

I think it could be enough deleting 'RS'. Something like this:

var1=`echo $a | awk -F", " '{print $1}'` Regards,
42,717
Posted By curleb
there was a typo in my last revision...$usrl is...
there was a typo in my last revision...$usrl is not the same as $url, believe it or not...

Sorry 'bout that...

-> lat="37.451"
lon="-122.18"

-> lon="-122.18"

->...
14,608
Posted By deindorfer
Perl: XKCD Geohash Generator
Ever Read XKCD? Check this out: xkcd: Geohashing (http://xkcd.com/426/)

here's a Perl Script that implements the algorithm in the comic:



#! /usr/bin/perl

use strict;
use warnings;
...
14,608
Posted By deindorfer
Use Perl;
Perl can do everything BASH can do a lot faster. Perl can also do many things which BASH cannot, e.g. connect to a legion of RDBMS implementations seemlessly with DBI, and support full OO...
16,509
Posted By soleil4716
Why are you doing 'SELECT *'? Why not...
Why are you doing 'SELECT *'?

Why not 'SELECT field3'?
Showing results 1 to 14 of 14

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