Is it possible to combine a regular expression with a aritmetical expression? For example, taking a 8-numbers caracter sequece and casting each output of a grep, comparing to a constant.
THX! (2 Replies)
I have a file with data that looks like -
record nullable { final_delim=end ,delim="~%%~" ,quote=none }
(
1_UPC:string;
2_QUANTITY:string;
)
I want to fetch the first column that starts with integer. e.g - 1_UPC, 2_QUANTITY.
I tried "awk -F ":" -v var1="^0-9" '$1==var1' inschemafile".... (2 Replies)
Hi all,
I'm working with flex (version 2.5.4a) on GNU/linux. I need to frame a regular expression which would match cases where word "file" does not occur. Negated character class wont work for me because they enforce "or" clause between different chars (so something like wont work). I would like... (5 Replies)
Hi
In the case expression below,the first condition is if the value is an 8 digit number then do the associated steps.
What i want to know is is there a beter way to write this regular expression?
)
i tried \{8\} but it didnt work?
while ; do
case "$1" in
)run_date=$1
shift ;;... (4 Replies)
CA_RELEASE has a value of 6. I need to check if that this is a numeric value. if not error.
source $CA_VERSION_DATA
if * ]
then
echo "CA_RELESE $CA_RELEASE is invalid"
exit -1
fi
+ source /etc/ncgl/ca_version_data
++ CA_PRODUCT_ID=samxts
++ CA_RELEASE=6
++ CA_WEEK_NO=7
++... (3 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
I would like to match the regular below xml snippet by using the following grep command. I want match the lines as well could some please help me ..
grep -il "<tokenValue>.*.</tokenValue>\n...*.amey.*.</userName>"
... (6 Replies)
Discussion started by: ameyrk
6 Replies
LEARN ABOUT DEBIAN
mdb-schema
MDBTools(1)MDBTools(1)NAME
mdb-schema - Generate schema creation DDL
SYNOPSIS
mdb-schema [options] database [backend]
DESCRIPTION
mdb-schema is a utility program distributed with MDB Tools.
It produces DDL (data definition language) output for the given database. This can be passed to another database to create a replica of the
original access table format.
OPTIONS -T <table>, --table <table>
Single table option. Create schema for this table only. Default is to export all tables.
-N namespace
Prefix identifiers with namespace.
--drop-table
Issue DROP TABLE statement.
--no-drop-table
Don't issue DROP TABLE statement. This is the default.
--not-null
Issue NOT NULL constraints. This is the default.
--no-not-null
Don't issue NOT NULL constraints.
--default-values
Issue DEFAULT values.
--no-default-values
Don't issue DEFAULT values. This is the default.
--not-empty
Issue CHECK <> '' constraints.
--no-not-empty
Don't issue CHECK <> '' constraints. This is the default.
--indexes
Export INDEXes. This is the default.
--no-indexes
Don't export INDEXes.
--relations
Export foreign keys constraints. This is the default.
--no-relations
Don't export foreign keys constraints.
backend
Specifies target DDL dialect. Supported values are access, sybase, oracle, postgres, and mysql. If not specified the generated DDL
will be in access format.
ENVIRONMENT
MDB_JET3_CHARSET
Defines the charset of the input JET3 (access 97) file. Default is CP1252. See iconv(1).
MDBICONV
Defines the output charset to use for the SQL file. Default is UTF-8. mdbtools must have been compiled with iconv.
MDBOPTS
semi-column separated list of options:
o use_index
o no_memo
o debug_like
o debug_write
o debug_usage
o debug_ole
o debug_row
o debug_props
o debug_all is a shortcut for all debug_* options
NOTES HISTORY
mdb-schema first appeared in MDB Tools 0.1.
SEE ALSO gmdb2(1)mdb-export(1)mdb-hexdump(1)mdb-prop(1)mdb-sql(1)mdb-ver(1)mdb-array(1)mdb-header(1)mdb-parsecsv(1)mdb-tables(1)AUTHORS
The mdb-schema utility was written by Brian Bruns and others.
BUGS
Relationships and other features may not be supported by all databases. Access datatypes are mapped to their closest counterparts in the
target backend. This may not always yield an exact fit.
0.7 13 July 2013 MDBTools(1)