10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there other way then this only solution I have found to print lines with numbers only?
file.txtone
two
three
3
four
five
5tt
6gfjdfgdf
9
66
six
0
seven
7
eight
546546
gffdg445gfg
fd644 (7 Replies)
Discussion started by: Jotne
7 Replies
2. Shell Programming and Scripting
Hi guys
I have a text file in the following format
what i would like ot do is iterate through the file deleting the lines containing only numbers. I have googled this and have been unable to find any help ( maybe its my search terms)
so if any one an give me a heads up i would... (3 Replies)
Discussion started by: dunryc
3 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write an expect script. Being a newbie in expect, maybee this is a silly doubt but i am stuck here.
So essentially , i want the o/p of one router command to be captured . Its something like this
Stats
Input Rx : 1234
Input Bytes : 3456
My expect script looks ... (5 Replies)
Discussion started by: ashy_g
5 Replies
4. Shell Programming and Scripting
Hello,
I will be sending this command to a specific COMID:
exp_send-i $COMID "fdisk -l | grep Disk | awk '{print $2}'"
The command will produce this output:
/dev/sda
/dev/sdb
etc..
the problem is how do I store the output in a variable in TCL,
I am currently using this to grab the... (1 Reply)
Discussion started by: h0ujun
1 Replies
5. UNIX for Dummies Questions & Answers
So, the beginning of my script will cat & grep a file with the output directed to a new file. The data I have in this file needs to be parsed, read and evaluated.
Basically, I need to identify the latest date/time stamp and then calculate whether or not it is within 15 minutes of the current... (1 Reply)
Discussion started by: hynesward
1 Replies
6. Shell Programming and Scripting
Hi boys,
I have a txt file with a lot of lines.
It have lines containing mostly only numbers but some of them contain numbers mixed with special characters and or letters or space..
its look like this:
271261621371
2727127f
27126|71372.
...
Do you have any ideas of the easiest way to... (3 Replies)
Discussion started by: alekkz
3 Replies
7. Shell Programming and Scripting
Hello
I'm using expect to create a script. I want some lines to be executed only if the telnet succeeds to the target host. Kindly check the code that i created. The problem i'm facing that while execting the script, the lines after login seems to be ignored. The password is not sent and also... (2 Replies)
Discussion started by: Hossam_Nox
2 Replies
8. Shell Programming and Scripting
Hi all,
I'm looking for a way to generate an error when a command does not print an expected message. For example :
test.sh :
echo hi!test.exp :
exp_internal 1
spawn ./test.sh
expect {
"hi!" {puts "bingo!"}
"*" {puts "error!" ; exit 1}
}
I expected test.exp to match the string... (2 Replies)
Discussion started by: whbos
2 Replies
9. Shell Programming and Scripting
Hi,
How would I get rid of lines having something else than numbers (such as tabs,white space, special characters, empty line, letters).
So I have big file with numers as follows:
12345678901
23456789012
32343678901
42345638901
52345678901
and I sometimes the file might contain some... (2 Replies)
Discussion started by: Juha
2 Replies
10. Shell Programming and Scripting
Hello Guru's
I know there are people who live to be able to help people like me. That's why I'm here!
I have a text file that has a corresponding address information that I need to be able to get maybe as a Unix Function.
The text file contains the following:
AIX17_JB_C;... (3 Replies)
Discussion started by: sallender
3 Replies
NE_SET_REQUEST_E(3) neon API reference NE_SET_REQUEST_E(3)
NAME
ne_set_request_expect100 - function to enable Expect: 100-continue support
SYNOPSIS
#include <ne_request.h>
void ne_set_request_expect100 (ne_request *request, int flag);
DESCRIPTION
An extension introduced in the HTTP/1.1 specification was the use of the Expect: 100-continue header. This header allows an HTTP client to
be informed of the expected response status before the request message body is sent: a useful optimisation for situations where a large
message body is to be sent. The ne_set_request_expect100 function can be used to enable this feature by passing the flag parameter as any
non-zero integer.
Warning
Unfortunately, if this header is sent to a server which is not fully compliant with the HTTP/1.1 specification, a deadlock occurs
resulting in a temporarily "hung" connection. neon will recover gracefully from this situation, but only after a 15 second timeout.
It is highly recommended that this option is not enabled unless it is known that the server in use correctly implements Expect:
100-continue support.
SEE ALSO
ne_request_create(3).
AUTHOR
Joe Orton <neon@webdav.org>.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWneon |
+--------------------+-----------------+
|Interface Stability | Volatile |
+--------------------+-----------------+
NOTES
Source for Neon is available on http://opensolaris.org.
neon 0.25.5 20 January 2006 NE_SET_REQUEST_E(3)