Search Results

Search: Posts Made By: robfwauk
Forum: Web Development 01-03-2012
1,879
Posted By Skrynesaver
You have to explicitly set the link rather than...
You have to explicitly set the link rather than expecting it to be evaluated on the fly. There are JS libraries that implement sprintf also consider the ternary operator in this context eg month>10...
Forum: Programming 04-21-2011
2,997
Posted By cambridge
But result is a pointer into this_line. ...
But result is a pointer into this_line.
sprintf(result, "%s</field>\n", newtmp);... is already updating this_line. Check the contents of this_line immediately after the above statement, you should...
Forum: Programming 04-20-2011
2,997
Posted By Corona688
It being its own line makes it a lot easier. ...
It being its own line makes it a lot easier.
char buf[1024];
char *token="<field=\"tmp\">", *match;

strcpy(buf, "<field=\"tmp\">replace me</field>");

// Gives us NULL if no match, or the...
1,627
Posted By Franklin52
Try to unset the IFS: while IFS= read line do...
Try to unset the IFS:
while IFS= read line
do
echo "$line" >> newfile.xml
done < "${xmlfile}"
1,498
Posted By DGPickett
You could do this in sed, by pulling each whole...
You could do this in sed, by pulling each whole row into the buffer and then substituting:
sed '
/<row>/{
:loop
/<\/row>/!{
N
b loop
}
s/\(<field...
Forum: Programming 12-01-2010
1,914
Posted By Corona688
The first rule a makefile encounters is the...
The first rule a makefile encounters is the default rule. So have the first rule require everything, or require things which require everything.

I usually set up like this:TARGETS=a bc def
...
Showing results 1 to 6 of 6

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