Guys
Iam trying to do a script to find what files are missing in particular directory.I came up with this
for i in file6 file7 file8 file9 file10 file11 file12; do
if ; then
echo " $file not in /mnt/Server/base/i386/ "
else
echo " $file ... "
fi
done
Iam trying to print... (2 Replies)
Hi,
I need one line command to display all files that ends with .scr.
Example: In a directory I have 10 files, out of that 4 files have filetype extension .dat and 4 files with .scr and 2 files with .txt.... In this i want to display only files that ends with .scr.
I tried some commands,... (2 Replies)
Hello, I have two files ..
1. inventory_i.txt
2. inventory_b.txt
I want to check if these two files exists. If exists, then do the process, otherwise, quite...
if ; then
echo "exists"
else
echo " does not exists"
fi
The above logic is not working... It is always, displaying Does... (2 Replies)
I have a list of files and their directories, starting from a particular location. e.g.
temp/new/a.c
temp/new/b.c
temp/old/a.c
temp/old/older/b.c
etc.
Now I want to check the existence of all these files in the respective directories .
I am trying something like
cat "fileList" |... (4 Replies)
Hi all,
I have the following code:
if ; then echo 'folder not exist'; else echo 'folder exist'; fi
The "testing" folder is not exist in /home/batch , but thhe result is 'folder exist'. It seems that the code cannot detect that the folder "testing" not exist.
ANybody know the... (1 Reply)
I am trying to execute the following command to check the existance of a file (which has a date timestamp on it). If there are more than one file, then also it should give me 'success' result.
if
then
<do some work>
else
<no files>
fi
Since there are more than one... (18 Replies)
Hi,
I need to find out if a particular file exists and i am using if with -e option.
Scenarion is like
There is a possibility of two files having nomaincluture like below
First file = abc20101028.somthing
Second File = abc20101028.somthing.done
I need to check abc20101028.somthing... (1 Reply)
Kindly help on below script:
<<
i='find ...'
if then
echo 'File Exists'
else
echo 'File Does Not Exist'
>>
If i has some file name then it runs properly but if i has nothing ( blank value) then it throws an error. I dont exactly remember right now but error seems like:... (2 Replies)
HI Guys,
I have some 8 files with different name and extensions. I need to check if they are present in a specific folder or not and also want that script to show me which all are not present. I can write if condition for each file but from a developer perspective , i feel that is not a good... (3 Replies)
Discussion started by: shankarpanda003
3 Replies
LEARN ABOUT MOJAVE
glutextensionsupported
glutExtensionSupported(3GLUT) GLUT glutExtensionSupported(3GLUT)NAME
glutExtensionSupported - helps to easily determine whether a given OpenGL extension is supported.
SYNTAX
#include <GLUT/glut.h>
int glutExtensionSupported(char *extension);
ARGUMENTS
extension Name of OpenGL extension.
DESCRIPTION
glutExtensionSupported helps to easily determine whether a given OpenGL extension is supported or not. The extension parameter names the
extension to query. The supported extensions can also be determined with glGetString(GL_EXTENSIONS), but glutExtensionSupported does the
correct parsing of the returned string.
glutExtensionSupported returns non-zero if the extension is supported, zero if not supported.
There must be a valid current window to call glutExtensionSupported.
glutExtensionSupported only returns information about OpenGL extensions only. This means window system dependent extensions (for example,
GLX extensions) are not reported by glutExtensionSupported.
EXAMPLE
Here is an example of using glutExtensionSupported:
if (!glutExtensionSupported("GL_EXT_texture")) {
fprintf(stderr, "Missing the texture extension!
");
exit(1);
}
Notice that the name argument includes both the GL prefix and the extension family prefix (EXT).
SEE ALSO
glutGet, glGetString
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutExtensionSupported(3GLUT)