09-06-2007
to print number one less than actual number
suppose we have a file which contains
34
45
56
77
55
66
54
67
so output shud be like
33
44
55
76
54
65
53
66
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am using for loop as follow:
for n in `ls`
do
echo "$n"
done
The code is running fine and aI am getting valid output as:
jick
zenny
assi
yogi
But 1also want to print count in front of each output like this:
1 jick
2 zenny (4 Replies)
Discussion started by: bisla.yogender
4 Replies
2. Shell Programming and Scripting
I have a file such as:
.....12345......67890...xxx
....123456....78901...yyy
...1234567...89012...zzz
..12345678.90123...aaa
Where the '.' character is a SPACE.
I'm trying to print just the first number in each line.
such as:
12345
123456
1234567
12345678
Both the number of... (1 Reply)
Discussion started by: dcfargo
1 Replies
3. UNIX for Dummies Questions & Answers
Hey everyone,
I need to write a script that will display the number of the argument before displaying the argument itself. Here's what I have so far:
for arg in "$@"
do
echo $#:$arg
done
This returns the sum of all arguments preceding the arguments themselves.
$(script) a b c
3:a... (1 Reply)
Discussion started by: unclepickle1
1 Replies
4. Shell Programming and Scripting
Hello everybody!
I have a problem "Write script, which will display the actual number of bash command interpreter, working in the operating system." I used ps command to list all process running in the system but I don't know how to select only bash command interpreter. Pls give me some... (3 Replies)
Discussion started by: nguyendu0102
3 Replies
5. Shell Programming and Scripting
Dear Perl users,
I need your help to solve my problem below.
I want to print the sequence number without missing number within the range.
E.g. my sequence number :
1 2 3 4 5 6 7 8 11 12 13 14
my desired output:
1 -8 , 11-14
my code below but still problem with the result:
1 - 14
1 -... (2 Replies)
Discussion started by: mandai
2 Replies
6. Shell Programming and Scripting
I would like to print the number of records of 2 files, and divide the two numbers
awk '{print NR}' file1 > output1
awk '{print NR}' file2 > output2
paste output1 output2 > output
awl '{print $1/$2}' output > output_2
is there a faster way? (8 Replies)
Discussion started by: programmerc
8 Replies
7. Shell Programming and Scripting
Hi,
Need to extract only words not numbers
#cat test.txt
123456
oracle
web
56789
s21adm
Required output
#grep <options> test.txt
oracle
web
s21adm
Note, in between integer "s21adm" is required but not with full integer "123456" and "56789" (6 Replies)
Discussion started by: ksgnathan
6 Replies
8. Shell Programming and Scripting
Hi
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|ABC Letr1|1530|||
1|net|EXP_1040 ABC|1121|||
1|net|EXP_TG1224|1122|||
1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
5 Replies
9. Shell Programming and Scripting
Hi folks,
I have a file with lots of lines in a text file,i need to print the occurence number after sorting based on the first column as shown below, thanks in advance.
sam,dallas,20174
sam,houston,20175
sam,atlanta,20176
jack,raleigh,457865
jack,dc,7845
john,sacramento,4567
... (4 Replies)
Discussion started by: tech_frk
4 Replies
10. UNIX for Beginners Questions & Answers
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
LEARN ABOUT DEBIAN
stubmaker
STUBMAKER(1p) User Contributed Perl Documentation STUBMAKER(1p)
NAME
stubmaker - Generates client stubs from a WSDL file.
OPTIONS
-d <dirname>
Specifies the directory you wish to output the files to. The directory must already exist.
-v Turns on "verbose" output during the code stub generation process. To be honest, there is not much the program outputs, but if you must
see something output to the console, then this fits the bill.
--help
Outputs a short help message.
--version
Outputs the current version of stubmaker.
STUB FILES
STUB SUBROUTINES
The "class" or "package" created by stubmaker is actually a sub-class of the core SOAP::Lite object. As a result, all methods one can call
upon SOAP::Lite one can also call upon generated stubs.
For example, suppose you wanted to obtain readable output from the generated stub, then simply call readable(1) on the stub's instance. See
the example below.
The following subroutines are unique to generated stub classes, and help the user control and configure the stub class.
want_som(boolean)
When set to 1, SOAP::Lite will return SOAP::SOM objects to the user upon invoking a method on a remote service. This is very helpful
when you need to check to see if the return value is a SOAP::Fault or not. When set to 0, SOAP::Lite will return the return value of
the method.
EXAMPLES
Invoking stubmaker from the command line
> perl stubmaker http://www.xmethods.net/sd/StockQuoteService.wsdl Or: > perl "-MStockQuoteService qw(:all)" -le "print getQuote('MSFT')"
Working with stub classes
Command line: > perl stubmaker http://ws1.api.re2.yahoo.com/ws/soap-demo/full.wsdl
File: echo > use full; > use SOAP::Lite +trace => qw( debug ); > my $f = new full; > $f->use_prefix(0); > $f->readable(1); >
$f->want_som(1); > $som = $f->echoViaBase64("foo");
COPYRIGHT
Copyright (C) 2000-2005 Paul Kulchenko. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2010-06-03 STUBMAKER(1p)