Hi. I've been playing around a bit. This isn't for any practical purpose-- it's really just a theoretical exercise. I wrote this little thing:
I would expect the following output:
But I get nothing but blank lines. The awk -v is still a little odd to me-- I can generally use it, but once in a while, its behavior seems anomalous. Anyway, what am I doing wrong?
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
If there exists a field in stdin, print it, otherwise, print hello.....
These print nothing:
cat /dev/null | awk '{if ( length > 0 ) print $1; else print "hello"}'
cat /dev/null | awk '{if ( $1 ) print $1; else print "hello"}'But the scripts work if I run them directly in a terminal:
... (8 Replies)
Does anyone know how will I make awk's split work with empty or null separator/delimiter?
echo ABCD | awk '{ split($0,arr,""); print arr; }'
I need output like:
A
B
C
D
I am under HP-UX (5 Replies)
So, I have a files with entries in this format:
servername,username,sub_username,useless_datapoint,mail_size
So, a few sample lines:
server_a,bob,jane,useless,112351
server_a,bob,jim,useless,421193
server_a,bob,bob,useless,0029385
server_a,karen,will,useless,112351... (3 Replies)
Hi!
I have a somehow big file (almost 3000 lines long and thirteen columns). Some lines have no value at all or, at least, are incomplete. The columns' values that have no data are marked with a "-" and the corresponding line (the line that owns that value) should be discarded and not used.
... (5 Replies)
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
LEARN ABOUT DEBIAN
shptest
SHAPELIB(1) User Commands SHAPELIB(1)NAME
shptest - create some shapefiles for testing
SYNOPSIS
shptest num
DESCRIPTION
Writes out a shapefile consisting of files testnum.shp and testnum.shx in the current directory. The num argument specifies the type of
shapes in the shapefile to create and takes values from:
0 NullShape
1 Point
2 PointZ
3 PointM
4 MultiPoint
5 MultiPointZ
6 MultiPointM
7 Arc
8 ArcZ
9 ArcM
10 Polygon
11 PolygonZ
12 PolygonM
13 MultiPatch
EXIT STATUS
0 Successful program execution.
1 Missing argument.
10 Test `num' not recognised.
DIAGNOSTICS
The following diagnostics may be issued on stdout:
Test `num' not recognised.
AUTHORS
Frank Warmerdam (warmerdam@pobox.com) is the maintainer of the shapelib shapefile library. Joonas Pihlaja (jpihlaja@cc.helsinki.fi) wrote
this man page.
SEE ALSO dbfadd(1), dbfcreate(1), dbfdump(1), dbf_dump(1), shpcreate(1), shpdump(1), shprewind(1)shapelib OCTOBER 2004 SHAPELIB(1)