Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

expr(3) [centos man page]

AST(3)							     Library Functions Manual							    AST(3)

NAME
expr - c-like expression library SYNOPSIS
#include <graphviz/expr.h> Expr_t* exopen(Exdisc_t*); Excc_t* exccopen(Expr_t*, Exccdisc_t*); int excc(Excc_t*, const char*, Exid_t*, int); int exccclose(Excc_t*); void exclose(Expr_t*, int); char* excontext(Expr_t*, char*, int); void exerror(const char*, ...); Extype_t exeval(Expr_t*, Exnode_t*, void*); Exnode_t* exexpr(Expr_t*, const char*, Exid_t*, int); Exnode_t* excast(Expr_t*, Exnode_t*, int, Exnode_t*, int); Exnode_t* exnewnode(Expr_t*, int, int, int, Exnode_t*, Exnode_t*); void exfreenode(Expr_t*, Exnode_t*); int expush(Expr_t*, const char*, int, const char*, Sfio_t*); int expop(Expr_t*); int excomp(Expr_t*, const char*, int, const char*, Sfio_t*); int exrewind(Expr_t*); void exstatement(Expr_t*); int extoken(Expr_t*); char* extype(int); Extype_t exzero(int); DESCRIPTION
exopen() is the first function called. exclose() is the last function called. exccopen() is the called if code generation will be used. exccclose() releases the state information allocated in exccopen(). exstatement() saves statement start information. exrewind() restores statement start information saved by exstatement(). SEE ALSO
AST(3)

Check Out this Related Man Page

cc_string(3)							       Coin							      cc_string(3)

NAME
cc_string - The cc_string type is a C ADT for ASCII string management. This is a Coin extension. SYNOPSIS
#include <Inventor/C/base/string.h> Public Attributes char * pointer size_t bufsize char buffer [CC_STRING_MIN_SIZE] Related Functions (Note that these are not member functions.) void cc_string_remove_substring (cc_string *me, int start, int end) void cc_string_construct (cc_string *me) cc_string * cc_string_construct_new (void) cc_string * cc_string_clone (const cc_string *string) void cc_string_clean (cc_string *string_struct) void cc_string_destruct (cc_string *me) void cc_string_set_text (cc_string *me, const char *text) void cc_string_set_subtext (cc_string *me, const char *text, int start, int end) void cc_string_set_integer (cc_string *me, int integer) void cc_string_set_string (cc_string *me, const cc_string *string) void cc_string_append_string (cc_string *me, const cc_string *string) void cc_string_append_text (cc_string *me, const char *text) void cc_string_append_integer (cc_string *me, const int digits) void cc_string_append_char (cc_string *me, const char c) unsigned int cc_string_length (const cc_string *me) void cc_string_clear (cc_string *me) void cc_string_clear_no_free (cc_string *me) uint32_t cc_string_hash_text (const char *text) uint32_t cc_string_hash (const cc_string *me) const char * cc_string_get_text (const cc_string *me) int cc_string_is (const cc_string *me) int cc_string_compare (const cc_string *lhs, const cc_string *rhs) int cc_string_compare_text (const char *lhs, const char *rhs) int cc_string_compare_subtext (const cc_string *me, const char *text, int offset) void cc_string_apply (cc_string *string, cc_apply_f function) void cc_string_sprintf (cc_string *me, const char *formatstr,...) void cc_string_vsprintf (cc_string *me, const char *formatstr, va_list args) Detailed Description The cc_string type is a C ADT for ASCII string management. This is a Coin extension. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 cc_string(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File/directory information......

Basically i have done created the script below, and it functions ok, it prints the access rights the user has. But i need it to print the group permissions, and other permissions, it would also be helpful if i could print the permissions in numeric form aswell, if it is possible. I have looked in... (50 Replies)
Discussion started by: Makaveli.2003
50 Replies

2. Shell Programming and Scripting

Searching for files over 30 days old in current directory

May be a simple question for experts here.... I need to get the list of files older than 30 days in the current folder. I tried "find", but it searches recursively in all the sub directories. Can I restrict the recursive search and extract the files only from current directory ? (18 Replies)
Discussion started by: cxredd4
18 Replies

3. UNIX for Dummies Questions & Answers

searching for content of files

Hi, This question may be quite newbish. I've stored a few files on my Unix system and am wondering how to search for their contents (i.e. I input the keyword and get a list of files with this keyword) I'd then like to put it on my website (php). I thought of find and grep, but am not... (19 Replies)
Discussion started by: Aretai
19 Replies

4. Shell Programming and Scripting

Double Substitution variables in ksh

Hi I have a variable whose value is like this i=/test/test1/test2/myfile.cd.070505123457 i would like to have the value of myfile.cd stored into another variable my attempt is test=${i##*/} ;echo $test ##and i get myfile.cd.070505123457 since what i wnat is myfile.cd i try this... (19 Replies)
Discussion started by: xiamin
19 Replies

5. Shell Programming and Scripting

regular expression for MAC address validation

Hi there I am running a script which requires the input of a MAC address from the user and was loooking for a regex that will verify the user has inputted a full 12 digit valid MAC with colons Ive seen a few on some sites that look huge and was wondering if anybody had a one liner (or as... (21 Replies)
Discussion started by: hcclnoodles
21 Replies

6. Shell Programming and Scripting

shell script for extracting out the shortest substring from the given starting and en

hi all, i need an urgent help for writing a shell script which will extract out and print a substring which is the shortest substring from the given string where first and last character of that substring will be given by the user. for e.g. if str="abcdpqracdpqaserd" now if the user gives 'a'... (18 Replies)
Discussion started by: pankajd
18 Replies

7. Shell Programming and Scripting

Awk

This part of script look of a pattern in a file ($file) and should print the file names of the file if the pattern is found between min and max. I don't know very well AWK, so i written this script thinking that $0 is the current field, but maybe is the current record, not the field. That may be... (22 Replies)
Discussion started by: DNAx86
22 Replies

8. UNIX for Dummies Questions & Answers

Sorting data and place them in different folders

Hello Unix gurus, I am new to Unix. I am working on some dummy project which involves unix scripting. I have a query : There is a file Number.dat which is of form say AAA|123|4563|animal AAA|1234|45634|animal2 BBB|123444|456312|bird BBB|123445|456313|bird2 Here AAA,BBB are... (29 Replies)
Discussion started by: Vinaykumar1
29 Replies

9. UNIX for Advanced & Expert Users

search a replace each line- help needed ASAP

can someone help me with the find and replace command. I have a input file which is in the below format: 0011200ALN00000000009EGYPT 000000000000199900000 0011200ALN00000000009EGYPT 000000000000199900000 0011200ALN00000000008EGYPT 000000000000199800000 0011200ALN00000000009EGYPT ... (20 Replies)
Discussion started by: bsandeep_80
20 Replies

10. Shell Programming and Scripting

Korn expr substr fails for non-numeric value

I am running AIX 5.3 using the Korn Shell. I am reading file names from a file, as an example: E0801260 E0824349 E0925345 EMPMSTR statement "num=$(expr substr "$DDNAME" 4 2) extracts the numeric values fine. But when I het the last entry, it returns num=MS, but I get an error... (19 Replies)
Discussion started by: kafkaf55
19 Replies

11. Emergency UNIX and Linux Support

Grep expression between double quotes

I need a quick expression to be able to pull out all the data in a text file that looks like "http:// some random url etc" So it should grab any string that begins with "http:// and ends with " There are other double quotes in the file but I only want the ones that start with "http:// and the... (31 Replies)
Discussion started by: glev2005
31 Replies

12. Shell Programming and Scripting

AWK Script Issue insert newline for a regular expression match

Hi , I am having an issue with the Awk script to insert newline for a regular expression match Having a file like this FILE1 #################### RXOER , RXERA , RXERC , RXERD .RXEA(RXBSN), RXERD , REXCD input RXEGT buffer RXETRY ####################### Want to match the RXE... (38 Replies)
Discussion started by: jaita
38 Replies

13. Shell Programming and Scripting

Sed: -e expression #1, char 16: unterminated address regex

I am trying to grep for a particular text (Do action on cell BL330) in a text file(sample.gz) which is searched in the content filtered by date+timestamp (2016-09-14 01:09:56,796 to 2016-09-15 04:10:29,719) on a remote machine and finally write the output into a output file on a local machine. ... (23 Replies)
Discussion started by: rbadveti
23 Replies

14. Shell Programming and Scripting

Use of expr to calc differenc ein to epoch values

Hi folks, I have a script where i am trying to calc the difference between two epoch dates and then have a condition based on the resultant value. When I run the script it keeps complaining; expr: syntax error ./testdiff.sh: line 11: syntax error in conditional expression ./testdiff.sh:... (25 Replies)
Discussion started by: jonnyd
25 Replies

15. Open Source

What editor does everyone use?

I was looking through the topics and I wasn't sure if this was the best place to post this question: I was wondering, out of curiosity, which software everyone was using to code their scripts in. I do mostly sh/ksh and my favorite has always been EditPlus because it is small, fast, yet powerful.... (409 Replies)
Discussion started by: yongho
409 Replies