hi need help here, a bit of code im doing requires a number to be enetered i have got validation and loop if its outside a ceratain range, but was wondering what code i need to validate if a character has been entered. cheers (3 Replies)
Hello all,
I am having problem in writing a if condition for the following:
I have a file Instance.dat which has:
#Server Environment
server1 dev
server2 dev
server3 sit
#!/bin/ksh
ENV=dev
for i in $( cat Instances.dat | grep -v '#' |awk {'print $2'} )
do
if ]... (7 Replies)
Dear guru's,
I am learning shellscripting and now I 'm struggeling with this problem:
When the number in the left column is equal or higer then 200, I want to send an email to "postmaster" @ the corresponding domain in the right column.
220 shoes.com
217 dishwashers.net
209 ... (11 Replies)
hi
I need a simple script to do the following.
I need to check the user input for
1. quad dotted notation.
2. check that all of the inputs are numeric and within 1-255 range.
Could someone please help me?
I tried to use egrep to check for dotted notation.
quad=1.1.1.12
... (5 Replies)
the user inputs names that have to be inside square brackets
I want to check if the user puts the brackets and if not ask him to re-enter the names (9 Replies)
Hi,
i am trying to validate 2 variables and then subtract, the following code works well in AiX but when i try in Solaris it doesnt work.
((TIME1>TIME2)) && ((TIME2=TIME2+864))
((DIF=TIME2-TIME1))
echo difference = $DIF Seconds
is there any way the validation can be done using... (2 Replies)
How do we validate the header file. The file number should increament by 1 (position 17 to 19) if not abend the process.
first week
ABC0001 20100101123
second week
ABC0001 20100108124
Third week
ABC0001 20100115125 (7 Replies)
I have a table that looks like this, but for a whole year:
Hourly weather history for XXX 7 Jun
0:00 Clear weather 28
1:00 Clear weather 23
2:00 Clear weather 21
3:00 Clear weather 22
4:00 Clear weather 22
5:00 Clear weather 22
6:00 Clear weather 23
7:00 Clear... (12 Replies)
How to validate the user supplied timestamp?
Ther requirement is as follows.
While invoking the script, the parameters passed to the script are minimum and maixmum timestamps.
let's say min_tstmp and max_tstmp
ksh abc.ksh 2011-09-01-00:00:00 2011-12-01-00:00:00
so... (3 Replies)
Hi Guys,
Im a newbie to scripting and have a small assignment. can someone please confirm if the script i have written would work fine as we dont have a test server to test :(
Scenario - copy 2 files from an ftp server (windows) to a linux machine (a perticular folder). run 2 different... (0 Replies)
Discussion started by: nishantvshah
0 Replies
LEARN ABOUT DEBIAN
gpx2shp
gpx2shp(1)gpx2shp(1)NAME
gpx2shp - Convert GPX files to ESRI Shape file
SYNOPSIS
gpx2shp [options] [-o output file] gpxfile
DESCRIPTION
gpx2shp is a converter from GPX file to ESRI/Shape file. This is a output of Metro Manila Transit Map Project by JOCV (Japan Overseas
Cooperation Volunteers) program of JICA (Japan International Cooperation Agency) in 2004. It is provided you on GPL2.
OPTIONS -o, --output
Sets output basename. The default is (source file name) - (extention name)
-w, --waypoints
Converts only waypoints data from a gpx file.
-t, --trackpoints
Converts only trackpoints data from a gpx file.
-r, --routes
Converts only routes data from a gpx file.
-a, --all
Converts all types of data from a gpx file.(default)
-e, --as-edge
Makes a separated output by each edges.
-p, --as-point
Makes a separated output by each points.
-s, --stats
Shows simple statistics of the outputs.
-b, --basic-columns
Stores only basic data as attribures to reduce memory and storage usage. (ele, name, cmt, type, time, fix, sym and number).
-L, --no-length
Removes length column from a waypoint or trackpoint attribute table.
-S, --no-speed
Removes speed column from a waypoint or trackpoint attribute table.
-T, --no-time
Removes time column from an attribute table.
-g, --gpxline
Adds line number of GPX file as attribures.
-f, --fast
Make it faster without any checks.
-3, --3d
Converts data using 3d format. (It's not compatible for Arcview 3.x.)
--min-points
Sets path minimum points to convert for noise reduction. Default is 2.
--min-length
Sets path minimum length to convert for noise reduction. Default is 0.
--min-time
Sets path minimum time period to convert for noise reduction. Default is 0.
--length-unit
Sets length unit from m,km,feet,mi and etc. The default is m. You can see the unit list from "geod -lu" command.
--time-unit
Sets time unit. The default is sec. You can set from day, hour, min and sec.
--speed-length-unit
Sets length unit for speed. The default is km. You can see the unit list from "geod -lu" command.
--speed-time-unit
Sets time unit for speed calulation. Default is hour. You can set from day, hour, min and sec.
--length-ellipsoid
Sets length ellipsoid like UGS84, clrk66. The default is UGS84. You can see the unit list from "geod -le" command.
-v, --verbose
Gives many messages.
--version
Shows version.
-h, --help
Shows this list.
AUTHORS
Toshihiro Hiraoka
Petter Reinholdtsen
BUGS or OPINIONS
Please e-mail your bugs or opinions to
washitoshi at yahoo.co.jp
SEE ALSO
gpx2shp / gps2shp homepage
http://gpx2shp.sourceforge.jp
Toshihiro Hiraoka 0.68 gpx2shp(1)