Sorry, I didn't pay attention to the fact that you're using double-quotes to surround the regex instead of the standard forward-slashes.
Actually, the problem seems to lie with the date formatting.
The date is in the wrong order, so your gt comparison later will give undesired results. It seems that you have to fix it so that both this date and the format retrieved from the file are re-ordered to YYYYMMDD.
ShawnMilo & Friends (looking over my shoulder preventing me from giving three wrong answers before we found this one.)
Display all of the lines in a file that contain "Raspberry" followed later
in the line by the letter "a"
I tried: grep Raspberry*a filename
that didn't work
Anyone know a solution? (1 Reply)
Hi guys
I've been trying to write a regular expression.
If I'm tryin to validate a sequence of characters as follows...
AB1-232-623482-743 43/3
where
a) any character after the "AB" can be any alphanumeric character
b) the " 43/3" part is optional
is there a quick neat way for me... (5 Replies)
could anybody tell me how i can add/append a new line using regular expression in vi on AIX?
i've tried several ways before, but all of them failed. e.g.
:%s/$/\n/
:%s/^/\v\r/
:( (1 Reply)
Hello!
I'm working with AWK, and i have this code:
/<LOOP_TIME>/,/<\/LOOP_TIME>/
I want that match every everything between <LOOP_TIME> and </LOOP_TIME>, but not if the line have a "#" before the tags.
Someone can help me?
Thanks! (6 Replies)
Hi,
I have script which will take a string as input and search in a file.
But when I want to search a pattern which has special characters script is ignoring it.
For example: I want to search a pattern "\.tumblr\.com". shell script is removing \ (backslah) and trying to search... (7 Replies)
Witam, mam oto taki ciąg znaków:
8275610268 + 9012383215 =niepotrzebnytextPotrzebuję w bash'u wyciągnąć obie liczby (mają taką samą liczbę cyfr), zapisać je do osobnych zmiennych, ale coś nie idzie, kombinowałem z grepem, ale nie potrafię skleić tego wyrażenia regularnego, no i potem przypisać do... (7 Replies)
Hello,
I would like to replace Line 187 of my file named run_example.
The original line is below, including the spaces:
celldm(1) = 6.00,
I want it to become something like
celldm(1) = 6.05,
or
celldm(1) = 6.10,
where the number is stored in a variable called... (6 Replies)
I have two input files (given below) and to compare each line of the File1 with each line of File2 starts with '>sample1'. If a match occurs and that matched line in the File2 contains another line or sequence of lines starting with "Chr" they have to be displayed in output file with that sample.... (8 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)
Hi,
I have a file with two fields in it as shown below
14,30
28,30
16,30
22,30
21,30
3,30
Fields are separated by comma ",".
I've been trying to validate the file based on the condition "each field must be a numeric value"
I am using HP-UX OS.
I have tried the following awk... (4 Replies)
Discussion started by: meetsriharsha
4 Replies
LEARN ABOUT DEBIAN
xls2csv
xls2csv(1) General Commands Manual xls2csv(1)NAME
xls2csv - reads MS-Excel file and puts its content as comma-separated data on standard output
SYNOPSIS
xls2csv [-xlV] [-f format ] [-b string ] [-s charset ] [-d charset ] [-q number ] [-c char] files
DESCRIPTION
xls2csv reads MS-Excel spreadsheet and dumps its content as comma-separated values to stdout. Numbers are printed without delimiters,
strings are enclosed in the double quotes. Double-quotes inside string are doubled.
OPTIONS -x print unknown Unicode chars as xNNNN, rather than as question marks
-l list known charsets and exit successfully
-cchar cell separator char. By default - comma.
-bstring
sheet break string. This string (by default - formfeed) would be output at the end of each workbook page. This string is printed
after page starting at start of line, but no linefeed would be automatically added at the end of string. Include newline at the ent
of sheet separator if you want it to appear on separate line by itself
-gnumber number of decimal digits in the numbers. By default maximal double precision (system-dependent macro DBL_DIG) is used.
-qnumber
set quote mode. In quote mode 0 cell contents is never quoted. In quote mode 1 only strings which contain spaces, double quotes or
commas are quoted. In quote mode 2 (default) all cells with type string are quoted. In quote mode 3 all cells are quoted.
-dcharset`
- specifies destination charset name. Charset file has format described in CHARACTER SETS section of catdoc(1) manual page. By
default, current locale charset would be used if langinfo support was enabled at the compile time.
-scharset
- specifies source charset. Typically, Excel files have CODE PAGE record, which denotes input charset, but for some reason you may
wish to override it.
-fformat
- specifies date/time format to use for output of all Excel date and time values. If this option is not specified, format, speci-
fied in the spreadsheet is used. On POSIX system any format, allowed by strftime(3) can be used as value of this option. Under MS-
DOS xls2csv implements limited set of strftime formats, namely m, d, y, Y, b, l, p, H, M, S.
-V outputs version number
FILES
${HOME}/.catdocrc, catdoc charset files and substitution map files (see catdoc(1) manual page for details,
SEE ALSO cat(1), catdoc(1), strings(1), utf8(7), unicode(7)AUTHOR
V.B.Wagner <vitus@45.free.net>, based on biffview by David Rysdam
MS-Word reader Version 0.94.4 xls2csv(1)