Hi,
I want to write a sed script which from
batiato:
batiato/giubbe:
pip_b.2.txt
pip_b.3.txt
pip_b.3mmm.txt
bennato:
bennato/peterpan:
123.txt
consoli:
pip_a.12.txt
daniele: (2 Replies)
HI, I have this list of apps like so:
DivX Products.app
DivX Support.app
Uninstall DivX for Mac.app
Build Applet.app
SpringBoard.app
Interface.app
MobileAddressBook.app
MobileSafari.app
MobileSlideShow.app
Preferences.app
Install Flash Player 8 OSX.app
Yap.app
check_afp.app
... (10 Replies)
I have a file that lists data about a system. It has a part that can look like:
the errors I'm looking for with other errors:
Alerts
Password Incorrect
Login Error
Another Error
Another Error 2
Other Info
or, just the errors I need to parse for:
Alerts
Password Incorrect
... (9 Replies)
I have a number of files (arranged in directories) which have last line blank,
I am trying to synchronize my code with other env and due to this blank lines, all files error out as different although only difference is that of balnk line at end of file.
Is there a way I can recursively... (2 Replies)
I've shell script where i used the below command to take the line which contains patterns.
sed -n "/$year 05:/,/$year 17:/p" trace.log | grep -f patterns.txt > output.log
This was working fine for long time, but now a days this script is not working with and throwing error like
sed:... (8 Replies)
My source is on each line
98.194.245.255 - - "GET /disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=&drc=&mo=&sid=&lang=EN&loc=JPN HTTP/1.1" 302 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR... (5 Replies)
Hi!
I have a strange behaviour from sed and awk, but I'm not sure, if I'm doing something wrong:
I have a list of words, where I want to add the following string at the end of each line:
\;\;\;\;0\;1
I try like this:
$ cat myfile | awk '{if ( $0 != "" ) print $0"\;\;\;\;0\;1"}'
Result:... (5 Replies)
Is there a way to delete a line containing something and the blank line at the same time?
If you do this it leaves a blank line behind.
sed '/yum/d' .bash_historyI know this works but I would think there would be a way to do it with one command
sed '/yum/d' .bash_history | sed '/^$/d'In... (2 Replies)
Hi All,
I am creating a text file using perl. The first record I am writing as "$line" and all the other as "\n$line". At the end the file is having N number of lines. I am using this file for MLOAD (Teradata), which is reading N+1 lines in the file and failing.I am not able to find new line... (2 Replies)
hello.
How to remove all characters in a line from first character ( a $ ) until and including the third occurrence of that character ( $ ).
Any help is welcome. (10 Replies)
Discussion started by: jcdole
10 Replies
LEARN ABOUT NETBSD
ipsend
IPSEND(1) General Commands Manual IPSEND(1)NAME
ipsend - sends IP packets
SYNOPSIS
ipsend [ -dITUv ] [ -i <interface> ] [ -f <offset> ] [ -g <gateway> ] [ -m <MTU> ] [ -o <option> ] [ -P <protocol> ] [ -s <source> ] [ -t
<dest. port> ] [ -w <window> ] <destination> [TCP-flags]
DESCRIPTION
ipsend can be compiled in two ways. The first is used to send one-off packets to a destination host, using command line options to specify
various attributes present in the headers. The destination must be given as the last command line option, except for when TCP flags are
specified as a combination of A, S, F, U, P and R, last.
The other way it may be compiled, with DOSOCKET defined, is to allow an attempt at making a TCP connection using a with ipsend resending
the SYN packet as per the command line options.
OPTIONS -d enable debugging mode.
-f <offset>
The -f allows the IP offset field in the IP header to be set to an arbitrary value, which can be specified in decimal or hexadeci-
mal.
-g <gateway>
Specify the hostname of the gateway through which to route packets. This is required whenever the destination host isn't directly
attached to the same network as the host from which you're sending.
-i <interface>
Set the interface name to be the name supplied.
-m <MTU>
Specify the MTU to be used when sending out packets. This option allows you to set a fake MTU, allowing the simulation of network
interfaces with small MTU's without setting them so.
-o <option>
Specify options to be included at the end of the IP header. An EOL option is automatically appended and need not be given. If an
option would also have data associated with it (source as an IP# for a lsrr option), then this will not be initialised.
-s <source>
Set the source address in the packet to that provided - maybe either a hostname or IP#.
-t <dest.port>
Set the destination port for TCP/UDP packets.
-w <window>
Set the window size for TCP packets.
-I Set the protocol to ICMP.
-P <protocol>
Set the protocol to the value given. If the parameter is a name, the name is looked up in the /etc/protocols file.
-T Set the protocol to TCP.
-U Set the protocol to UDP.
-v enable verbose mode.
SEE ALSO ipresend(1), iptest(1), bpf(4), protocols(5), ipsend(5)DIAGNOSTICS
Needs to be run as root.
BUGS
If you find any, please send email to me at darrenr@pobox.com
IPSEND(1)