As has already been stated; you should not use csh for scripting (or anything else), but if you're going to ignore our advice, I don't see why (if you insist on using csh) that the following would not provide suitable output:
and, adding those backslash characters to your sample input file took one command in vi. That command was:
Why is that too hard to do?
Last edited by RudiC; 02-20-2019 at 06:42 AM..
Reason: typo
Hi, I am trying to write a csh script that will run another csh script, but redirect the output from the second script to an email. my code looks like this.
#!/bin/csh
## This script is designed to run the SSM.sh
## then email the output to a specified email address
## it will also display... (2 Replies)
Hi everyone.
I am new to the forums and new to Unix, so please pardon my beginner "status".
In my company, we have a few C shell scripts, which we call BAT files (!). They all start with the usual "#/bin/csh" line to get it to run the .cshrc script which preloads the session with a lot of... (1 Reply)
I mean this :
perl -pi -e 's/OS/blah/g' *.c*
The Great thing in such thing i dont need to rename orig then rename back when i do it with
sed for instance inside csh shell , is there any way to avoid this with sed/awk/what ever?
Thanks (4 Replies)
I am trying to use echo in CSH and getting an error.
I want to use to tell the user which parameters are optional.
set msg2 = " -Inmod= -Nxz= -Varp="
echo $msg2 (3 Replies)
I get a "command not found" error when I run the csh command. I also get this error when I start a new session since my default shell is c shell. Any pointers as to what is going on?
I am trying to set some paths using the .cshrc file and need to use the csh command for this.
Thanks. (1 Reply)
Hi All,
I need your hand to resolve an issue I am facing with a join command in one of the script. Please see the 3 files attached where file1 and file2 are the two files I am passing to the join command written in the command file. Prior to calling the join I am also sorting both the files on... (6 Replies)
HI ,
I am new to csh. I need to pass some command line arguments like
./abc.sh -os Linux -path abc -tl aa -PILX 1
I have defined the loop as shown below. But its taking "-os" switches as arguments. Its treating them as arguments.
How to resolve it?
while ( $#argv != 0 )
switch ($argv)
... (7 Replies)
HI, guys, I am having some problem with the echo command, so I want to echo some text to a file name loginFile, the result inside the loginFile should looks like:
expect ">"
so what I did is:
echo "expect "">""" >> $loginFile
but it just gave out:
expect >
The thing is I still need... (2 Replies)
Hello,
I have written a command n shell script :
srvctl relocate service -d t1 -s s1 -i i1 -t t1 -f
If the above command executes successfully without error I need to echo
"Service relocated successfully
and If it errors out I need to trap the errors in a file and also need to make... (1 Reply)
hi everyone
what is difference between "if ( -e Arch )" and "if ( -e ./Arch )" in csh shell?
Many Thanks
samad (1 Reply)
Discussion started by: abdossamad2003
1 Replies
LEARN ABOUT DEBIAN
ll2utm
LL2UTM(1) General Commands Manual LL2UTM(1)NAME
ll2utm - Convert latitude/longitude geographical coordinates to UTM coordinates
SYNOPSIS
ll2utm [-L] | [latitude longitude [nad27 | nad83 | wgs84]]
DESCRIPTION
This program uses Redfearn's formulas to convert a given latitude and longitude into the equivalent Universal Transverse Mercator (UTM)
coordinates. (This operation is often referred to as projection, since it projects a curved surface onto a flat plane.) The input lati-
tude and longitude must be in decimal degrees. Latitudes south of the equator are negative, and longitudes west of the prime meridian are
negative. UTM is intended for use in the latitude range from 80S to 84N. The program will accept input outside of this range, but will
print a warning message.
The output takes the form of a single line, containing the UTM "x" value, the UTM "y" value, and the UTM zone, separated by white space.
The "x" value includes the normal 500,000 false easting. The "y" value includes the normal 10,000,000 false northing, if the point is in
the southern hemisphere. Points in the southern hemisphere are flagged by making the zone number negative.
If you provide just the "-L" option, the program will print some license information and exit.
Projections, and inverse projections, depend on defining an ellipsoid that approximates the shape of the earth (the reference ellipsoid)
and defining reference coordinates (the datum) that allow measurements to be made. Different choices of the ellipsoid and datum can yield
projections that differ by tens of meters. There are a wide variety of choices, due to both the historical progression of measurement
technology, and the desire to maximize accuracy over a given region (such as North America, or one of the United States).
This program defaults to the North American Datum of 1927 (NAD-27) with the Clarke Ellipsoid of 1866, since these appear to be appropriate
for much of the freely-available data. The data are apparently in the process of being converted to the Geodetic Reference System 1980
(GRS-80) ellipsoid and NAD-83. If you come across such data, you can specify "nad83" on the command line. The GTOPO30 data use the World
Geodetic System 1984 (WGS-84) ellipsoid, which can be invoked by specifying "wgs84" on the command line.
SEE ALSO
The utm2ll(1) command provides the inverse conversion.
Jul 24, 2001 LL2UTM(1)