10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Everyone,
I have a sample file raw.txt as shown below :
Drive Bays
Bay Name : SD-2C
Number of Standby Power Supplies : 4
Number of Drive Enclosures : 12
Summary Status of Contained Modules
All... (6 Replies)
Discussion started by: rahul2662
6 Replies
2. Shell Programming and Scripting
This basic code works.
I have a very long list, almost 10000 lines that I am building into the array. Each line has either 2 or 3 fields as shown in the code snippit. The array elements are static (for a few reasons that out of scope of this question) the list has to be "built in".
It... (5 Replies)
Discussion started by: sumguy
5 Replies
3. Shell Programming and Scripting
Hi All.
This my first post to this forum, and i assuming it will be best out-of all.
I am quite new to Unix scripting so please excuse me for any silly questions -
I am trying to create on Unix script in which it telnet to my server, check the connectivity of the server and then it... (2 Replies)
Discussion started by: HHarsh
2 Replies
4. Shell Programming and Scripting
Hi
I have a file
name1 xxxxx
name1 xxxxx
name1 yyyyy
name 1 zzzzz
name1 Uniprot Id 1234
name2 sssss
name2 eeeee
name2 bengamine
name2 Uniprot Id 3456
......................and so on
I have to capture Uniprot IDs only in a separate file so that output contain only
... (20 Replies)
Discussion started by: manigrover
20 Replies
5. Shell Programming and Scripting
Hi,
I have one file as follows and I need to read this file contents in an HTML format. And send html file to some mail ids using sendmail.
Communications Pvt Ltd
Report
AccountId Name Code IdBill Balance ... (3 Replies)
Discussion started by: Kattoor
3 Replies
6. Shell Programming and Scripting
I'm a noob working on a script to take 3 user inputs. One of them is simply a variable: "poolname". The other 2 are cases: "groupa/groupb" and "enable/disable". "groupa" and "groupb" reference 2 files - groupa.txt or groupb.txt. These files simply consist of a list of server IP addresses and port... (2 Replies)
Discussion started by: *nixnoob
2 Replies
7. Shell Programming and Scripting
Hello All,
How i can put loop in nawk. what i want is that i define a variable which contain vlaues like var='1 2 3 4 5' and then define for loop which gives vlaue to nawk one by one to varilable inside nawk and then print it.
cat /omp-data/logs/5etr/081121.APX | nawk -v CDNLIST='700 701' '
... (1 Reply)
Discussion started by: wakhan
1 Replies
8. Shell Programming and Scripting
i have the equation like below
07:35:07 ( AB : 2319f.ab * 22) + ( AB : 2320f.ab * 22.03 ) + ( AB :2321f.ab * 22.07 ) ...... N
i want put ":" as a delimiter and break the equation like below
2319f.ab * 22
2320f.ab *22.03
2321f.ab * 22.07
.
.
N
i know the number of... (1 Reply)
Discussion started by: mail2sant
1 Replies
9. UNIX for Dummies Questions & Answers
i have got a file where the env command is appended 5 times. i have to now look for the username and display it in the form of
1) PWD=/home/lee.ballancore
2) USER=lee.ballancore
3) MAIL=/var/spool/mail/lee.ballancore
4) LOGNAME=lee.ballancore
5) HOME=/home/lee.ballancore
6)... (1 Reply)
Discussion started by: nehaquick
1 Replies
10. Shell Programming and Scripting
Perl file::find can I sort the out put
I am using file::find in my script but how I wish to process each file found in date order.
Can I sort this module?
eg
part of current script is....
use File::Find;
# Recursively find all files and directories in $mqueue_directory
find(\&wanted,... (2 Replies)
Discussion started by: Andrek
2 Replies
splitshp(1) General Commands Manual splitshp(1)
NAME
splitshp - Split Shape into frames or combine frames into Shapes
SYNOPSIS
splitshp SHAPE FRAME...
splitshp SHAPE
DESCRIPTION
Shape files are used for storage of all visible elements (from UI buttons to terrain features) of the games Exult supports. Shapes contain
one or more frames. splitshp can be used to combine frames into one file, or split a Shape file into its component frames.
The mode of operation is determined by looking at the number of commandline arguments. Exactly one argument means splitting, more than one
argument signals a combining operation.
Combining
Each FRAME names a Shape file typically consisting of only one frame (i.e. subsequent frames are ignored). All these frames are concate-
nated and written to the Shape file SHAPE.
Splitting
SHAPE will be read and split into its component frames. Each of those will be written to its own Shape file. The names of these files are
determined by splitting the name of SHAPE before the last dot -- anything before this dot is the STEM, anything else (including the dot) is
the PREFIX, which may be empty in case there is no dot in the name. The output files are then named STEM_nnSUFFIX with nn replaced by the
frame number.
EXAMPLES
splitshp button.shp button-up.shp button-down.shp
Packs the (first) two frames from button-up.shp and button-down.shp into the Shape file button.shp
splitshp grizzly
Unpacks the frames contained in the Shape file grizzly into the (single-frame) Shape files grizzly_00, grizzly_01, grizzly_02, etc.
splitshp boar.new.shp
Unpacks the frames contained in the Shape file boar.new.shp into the (single-frame) Shape files boar.new_00.shp, boar.new_01.shp,
boar.new_02.shp, etc.
AUTHOR
This manpage was written by Robert Bihlmeyer. It may be freely redistributed and modified under the terms of the GNU General Public License
version 2 or higher.
SEE ALSO
exult(6), shp2pcx(1)
Exult 2002-03-24 splitshp(1)