this is my output for my crawler.
/about.html
/ads/
/advanced_search?hl=en
froogle.google.com/frghp?hl=en&tab=wf&ie=UTF-8
groups.google.com/grphp?hl=en&tab=wg&ie=UTF-8
/imghp?hl=en&tab=wi&ie=UTF-8
/intl/en/options/
/language_tools?hl=en
/maphp?hl=en&tab=wl&ie=UTF-8... (3 Replies)
I am just wondering if it's possible to refer to variables within a sed statement as follows:-
cat $file | sed -e 1's/$oldtext/$newtext/' > $file
as when I run the script, the variables are not recognised and nothing happens..??
Thanks (5 Replies)
Hi,
I'm trying to write a bit of code that will check if a file exists and then archives the file
Im trying to use the following if statement without success..
if
then
mv filename archive/filename
else
echo "no filename exists"
fi
Should the file name be... (3 Replies)
Hi All,
If i run below copy command, it works absolutely fine,
/opt/csw/bin/scp axetlxyz01:/opt/data/test/QURIES* ./input
I want to make the above line better, by adding an IF statement, want to check if there is any file exists with name QURIES*.* then i need to copy that.
if
... (7 Replies)
I need to check if an entry input by the user is in a file. If so, I need to run a command, and if it does not exist then it should output entry does not exist.
So I have so far...
echo "Enter record:"
read record
//command || //command
Can I use an if statement to do this? (3 Replies)
Hi
#Testing for file existence
if ; then
echo 'SCHOOL data is available for processing'
else
echo 'SCHOOL DATA IS NOT AVAILABLE FOR PROCESSING'
:
i wrote a script, where it begins by checking if file exists or not.
If it exists, it truncates the database... (2 Replies)
Hello Guys,
I am new here and this is my first post, hope someone can help me
I am writing a script that is supposed to go in 9 different directories and edit a given file in each of the directories. I am using sed to edit the file as
sed -i 'line# s/#to be changed/#to be replaced with/... (5 Replies)
Hi,
I have a file with data listed below:
clm_id double,
cnl_id double,
cnl_amt double
I want output to be
clm_id string,
cnl_id string,
cnl_amt double
So replace double by string if the field contains the word _id
I tried
sed -e 's/_id/& string/' filename
The above will not... (2 Replies)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
sage(3) Library Functions Manual sage(3)NAME
sage - The SDL library for OpenGL extensions.
DESCRIPTION
#include <sage/sage.h>
Sage is a small C library providing Open GL extensions to applications using SDL. It has been automatically generated from the glext.h
header file from the OpenGL website. The Sage source package comes with the Perl scripts to generate new sources from updated glext.h
files.
Additionally, it provides a way of accessing the standard GL and GLU headers in a cross platform method. sage/GL.h and sage/GLU.h should be
used in place of gl/GL.h and gl/GLU.h (or the equivalent on other platforms.)
To use Sage, an application must first call sage_init once the OpenGL context has been created. This checks for the existence of each
extension it knows about and links up the appropriate function pointers. The array sage_ext sets each exension that is found to 1, and 0
otherwise. Applications should check the existence of the extension in sage_ext before using it.
Extensions can then be used by their name as defined in the spec.
BUGS
Sage does not check to see of the OpenGL context is valid.
On some systems, the standard Open GL header causes problems with sage (namespace conflicts).
Apparently some broken GL implmentations may report the existence of an extension, but not actually provide it. Sage will not detect this.
AUTHOR
Simon Goodall (simon (at) simongoodall.co.uk)
SEE ALSO sage_init(3)
September 22, 2005 sage(3)