How can I get only FileName associated with a INODE on Unix much faster?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How can I get only FileName associated with a INODE on Unix much faster?
# 8  
Old 12-08-2010
Thanks, I will work with what I have so far.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX script to display the filename

Hi All How to answer the below interview question.. With a path and filename of "/mydir1/mydir2/mydir3/myfilenane.dat" write a UNIX script to display the filename (2 Replies)
Discussion started by: shumail
2 Replies

2. Shell Programming and Scripting

Filename check in UNIX

Hello , I have to search for the file names which will either has ABC_DEF or NN in their filename Please note that both cannot appear in the same file name currently I am using ls -lrt /zthetl/SrcFiles/*ABC_DEF*.xls| head -1 | nawk '{print $9}' How to combine the NN in this code?... (4 Replies)
Discussion started by: Pratik4891
4 Replies

3. UNIX for Dummies Questions & Answers

How to get redirected filename inside unix script

Hi All, I am having a script which calculate checks the input feed and perform some function. When i am executing this script i am redirecting this to a output file. I want to know the redirected output file name inside my scripts. Is there is any way to get that . like the same way we... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

4. UNIX for Dummies Questions & Answers

UNIX command to get inode's tid and pid

Hi everyone, I am new here in www.unix.com, i found this site because I am looking for an answer to this problem of mine. I need to know a UNIX command to display an inode's thread id and process id. Hope someone can help me on this. Thanks :D (8 Replies)
Discussion started by: rodkun
8 Replies

5. UNIX for Dummies Questions & Answers

inode filename

can someone please tell me why is the filename not inlcuded in the inode of the file? (2 Replies)
Discussion started by: wowman
2 Replies

6. AIX

How to get the filename of which has been deleted if I know the inode number?

How to get the filename of which has been deleted if I know the inode number. i can use the command "istat" to get the inode number of the file. # istat /proc//fd/x If this file has been deleted,but the process of this file has not been closed and handle has not been released ,so this... (3 Replies)
Discussion started by: JoyOnLine
3 Replies

7. UNIX for Dummies Questions & Answers

unix file system V filename limit

Why unix system V has a filename size limit of 14 characters.How other versions of Unix got around this problem.Can anybody help? (7 Replies)
Discussion started by: admirer
7 Replies

8. UNIX for Dummies Questions & Answers

SCO Unix inode structure.

I have read quite a few threads here about the unix file creation date. I was interested in finding how to display it using a unix command. find did not help me so i looked at man inode. I found direction to htino.h which is described as the structure of the inode for S51K (UNIX), HTFS, EAFS... (4 Replies)
Discussion started by: rbn
4 Replies

9. Solaris

How to map a disk block to filename/ Inode

Hi, I want to find out a particular disk block belong to which file. in solaris 2.8 Can anyone help. Thanks and Regards Bala (1 Reply)
Discussion started by: Balamurugan
1 Replies

10. UNIX for Dummies Questions & Answers

UNIX Filename length restrictions?

Can anyone help me out with information on the filename length restrictions in UNIX? Thanks! (2 Replies)
Discussion started by: xmeh
2 Replies
Login or Register to Ask a Question
xmerl_xsd(3erl) 					     Erlang Module Definition						   xmerl_xsd(3erl)

NAME
xmerl_xsd - Interface module for XML Schema vlidation. DESCRIPTION
Interface module for XML Schema vlidation. It handles the W3.org specifications of XML Schema second edition 28 october 2004. For an intro- duction to XML Schema study part 0. An XML structure is validated by xmerl_xsd:validate/[2,3]. DATA TYPES
global_state() : The global state of the validator. It is representated by the #xsd_state{} record. option_list() : Options allow to customize the behaviour of the validation. Possible options are : {tab2file,boolean()} : Enables saving of abstract structure on file for debugging purpose. {xsdbase,filename()} : XSD Base directory. {fetch_fun,FetchFun} : Call back function to fetch an external resource. {fetch_path,PathList} : PathList is a list of directories to search when fetching files. If the file in question is not in the fetch_path, the URI will be used as a file name. {state,State} : It is possible by this option to provide a state with process information from an earlier validation. EXPORTS
file2state(FileName) -> {ok, State} | {error, Reason} Types State = global_state() FileName = filename() Reads the schema state with all information of the processed schema from a file created with state2file/[1,2] . The format of this file is internal. The state can then be used validating an XML document. format_error(L::Errors) -> Result Types Errors = error_tuple() | [error_tuple()] Result = string() | [string()] Formats error descriptions to human readable strings. process_schema(Schema) -> Result Equivalent to process_schema(Schema, []) . process_schema(Schema, Options) -> term() process_schemas(Schemas) -> Result Equivalent to process_schema(Schemas, []) . process_schemas(Schemas, Options) -> term() process_validate(Schema, Xml::Element) -> Result Equivalent to process_validate(Schema, Xml, []) . process_validate(Schema, Xml, Opts) -> term() state2file(S::State) -> ok | {error, Reason} Same as state2file(State,SchemaName) The name of the saved file is the same as the name of the schema, but with .xss extension. state2file(S::State, FileName) -> ok | {error, Reason} Types State = global_state() FileName = filename() Saves the schema state with all information of the processed schema in a file. You can provide the file name for the saved state. FileName is saved with the .xss extension added. validate(Xml::Element, State) -> Result Equivalent to validate(Element, State, []) . validate(Xml::Element, State, Opts::Options) -> Result Types Element = XmlElement Options = option_list() Result = {ValidElement, global_state()} | {error, Reasons} ValidElement = XmlElement State = global_state() Reasons = [ErrorReason] | ErrorReason Validates a parsed well-formed XML element (Element). A call to validate/2 or validate/3 must provide a well formed parsed XML element #xmlElement{} and a State, global_state() , which holds necessary information from an already processed schema. Thus validate enables reuse of the schema information and therefore if one shall validate several times towards the same schema it reduces time consumption. The result, ValidElement, is the valid element that conforms to the post-schema-validation infoset. When the validator finds an error it tries to continue and reports a list of all errors found. In those cases an unexpected error is found it may cause a single error reason. Usage example: 1>{E,_} = xmerl_scan:file("my_XML_document.xml"). 2>{ok,S} = xmerl_xsd:process_schema("my_XML_Schema.xsd"). 3>{E2,_} = xmerl_xsd:validate(E,S). Observe that E2 may differ from E if for instance there are default values defined in my_XML_Schema.xsd . AUTHORS
<> xmerl 1.2.8 xmerl_xsd(3erl)