Hi,
I am newbie in UNIX so please excuse for my questions.
Is there a a way to search for string in files within folder and sub folder in particluar file extensions.
Ex. search for ABC in folder 'A'(including it's sub folders) in html, xml files.
Thanks,
Ani (2 Replies)
Hi need to know if we can write a shell script to find files for a particular format;s ie both .csv and .txt in a particular folder and then copy them to a new folder on a dialy basis. Does anyone know how this can be accomplished?
Thanks,
Sandeep (20 Replies)
Greetings to All ... :b:
I have one root folder containing different other folders within it.
I need to get the list of all different types of file extensions residing in those folders.
Could anyone help me providing some shell script? (1 Reply)
Greetings to all!!:b:
I have one root folder containing several other folders inside it. This tree structure is deep. And the files are of similar extension.
I need to start at the top level and recursively search and rename all the files with say .a extension to .b .
This is the code to... (7 Replies)
unix program to which a directory name will be passed as
parameter. This directory will contain files with various
extensions. This script will create directories with the names of the
extention of the files and then put the files in the
corresponding folder. All files which do not have any... (2 Replies)
I have a file
n06-z30-sr65-rgdt0p25-varp0.25-8x6drw-test.cmod
and I want to get the extension.
At the moment I have
set filextension = `echo $f | awk 'BEGIN {FS="."} {print $2}'`
which of course does not work as there is a point in varp0.25 (13 Replies)
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
I'm afraid this is a silly question but I can't figure it out.
I have a script like so...
echo "Enter DRDL Signature Version Number"
read DRDL_Number
mv signature_output.csv SERVICE_OBJECTS_S-$DRDL_Number.csv
The resultant filename does not contain the .csv as follows.... (3 Replies)
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT CENTOS
xfreeextensionlist
XQueryExtension(3) X FUNCTIONS XQueryExtension(3)NAME
XQueryExtension, XListExtensions, XFreeExtensionList - list available extensions
SYNTAX
Bool XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return)
char **XListExtensions(display, nextensions_return)
XFreeExtensionList(list)
ARGUMENTS
display Specifies the connection to the X server.
name Specifies the extension name.
major_opcode_return
Returns the major opcode.
first_event_return
Returns the first event code, if any.
first_error_return
Returns the first error code, if any.
nextensions_return
Returns the number of extensions listed.
list Specifies the list of extension names.
DESCRIPTION
The XQueryExtension function determines if the named extension is present. If the extension is not present, XQueryExtension returns False;
otherwise, it returns True. If the extension is present, XQueryExtension returns the major opcode for the extension to
major_opcode_return; otherwise, it returns zero. Any minor opcode and the request formats are specific to the extension. If the extension
involves additional event types, XQueryExtension returns the base event type code to first_event_return; otherwise, it returns zero. The
format of the events is specific to the extension. If the extension involves additional error codes, XQueryExtension returns the base
error code to first_error_return; otherwise, it returns zero. The format of additional data in the errors is specific to the extension.
If the extension name is not in the Host Portable Character Encoding the result is implementation-dependent. Uppercase and lowercase mat-
ter; the strings ``thing'', ``Thing'', and ``thinG'' are all considered different names.
The XListExtensions function returns a list of all extensions supported by the server. If the data returned by the server is in the Latin
Portable Character Encoding, then the returned strings are in the Host Portable Character Encoding. Otherwise, the result is implementa-
tion-dependent.
The XFreeExtensionList function frees the memory allocated by XListExtensions.
X Version 11 libX11 1.6.0 XQueryExtension(3)