12-25-2019
This User Gave Thanks to vbe For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have input file like
RDBMS FALIURE UTY8703 'USER_WORK.TEST' .HIghest return code '12'
I want to parse data which comed between first quote till next quote
USER_WORK.TEST
can you please suggest how to do that (4 Replies)
Discussion started by: scorp_rahul23
4 Replies
2. Shell Programming and Scripting
hey all,
i made a simple .sh like this:
echo "<style media="screen" type="text/css">@import url("main.css");</style>"
but the output is:
<style media=screen type=text/css>@import url(main.css);</style>
i want to keep double-quotes, can anyone help me?
thanks (3 Replies)
Discussion started by: indraf
3 Replies
3. Shell Programming and Scripting
The command line bellow works fine by itself.
/opt/csw/bin/rsync -azq --delete -e "ssh -i /.ssh/ss" /home/ me@myaccount.storage.com:/home/
Now I would like to introduce some variable into it and make a .sh file such as bellow and it does not work anymore. I guess the part -e "ssh -i /.ssh/ss" has... (4 Replies)
Discussion started by: ngungo
4 Replies
4. Shell Programming and Scripting
Hi,
I've been trying to write a regex to use in egrep (in a shell script) that'll fetch the names of all the files that match a particular pattern. I expect to match the following line in a file:
Name = "abc"
The regex I'm using to match the same is:
egrep -l '(^) *= *" ** *"$' /PATH_TO_SEARCH... (6 Replies)
Discussion started by: NanJ
6 Replies
5. Shell Programming and Scripting
i want to replace mistaken quotes in line starting with tag 300 and relocate the quote in the correct position so the input is
223;25
224;20100428064823;1;0;0;0;0;0;0;0;8;1;3;9697;18744;;;;;;;;;;;;
300;X;Event:... (3 Replies)
Discussion started by: wradwan
3 Replies
6. Shell Programming and Scripting
Hi Everyone hwo are you
i have one file "abc.txt" which contains record like this
"1","2","3"
"3","4","5"
now i want to change above 2 to 5
so i write the code as
awk ' BEGIN{FS=","} { if(NR==1) { print $1",5","$3 } else { print $0 } ' abc.txt
but the outpute is
"1",5,"3"... (5 Replies)
Discussion started by: aishsimplesweet
5 Replies
7. UNIX for Dummies Questions & Answers
My question is, "Do I not understand, or is my information out of date?"
I am trying to just be a student, rtfm'ing. I am working on my work systems. Is it simply that the book was printed in 2002 and a lot has changed since then, or did I miss something?
Working in Korn Shell.
I have been... (5 Replies)
Discussion started by: g.j.huebschman
5 Replies
8. Shell Programming and Scripting
Hi All ,
We have source data file as csv file and since data could contain commas ,each attribute is quoted into double quotes.However problem is that some of the attributa data also contain double quotes which is converted to double double quote while creating csv file
XLs data :
... (2 Replies)
Discussion started by: Shalini Badal
2 Replies
9. Shell Programming and Scripting
From:
1,2,3,4,5,This is a test
6,7,8,9,0,"This, is a test"
1,9,2,8,3,"This is a ""test"""
4,7,3,1,8,""""
To:
1,2,3,4,5,This is a test
6,7,8,9,0,"This; is a test"
1,9,2,8,3,"This is a ''test''"
4,7,3,1,8,"''"Is there an easy syntax I'm overlooking? There will always be an odd number... (5 Replies)
Discussion started by: Michael Stora
5 Replies
10. What is on Your Mind?
Enjoy folks...
AT&T Archives: The UNIX Operating System - YouTube (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
ashunt
ashunt(8) netsniff-ng-toolkit ashunt(8)
NAME
ashunt - Autonomous System (AS) trace route utility
SYNOPSIS
ashunt -H|--host <host> -i|-d|--dev <dev> [-6|--ipv6] [-n|--numeric] [-N|--dns] [-f|--init-ttl <ttl>] [-m|--max-ttl <ttl>]
[-q|--num-probes] [-x|--timeout <sec>] [-S|--syn] [-A|--ack] [-F|--fin] [-P|--psh] [-U|--urg] [-R|--rst] [-E|--ecn-syn] [-t|--tos
<tos>] [-G|--nofrag] [-X|--payload <string>] [-Z|--show-packet] [-l|--totlen <len>] [-w|--whois <server>] [-W|--wport <port>]
[--city-db <path>] [--country-db <path>] [-v|--version] [-h|--help]
DESCRIPTION
This program provides AS information on each hop between the client and the target host.
OPTIONS
ashunt -i eth0 -N -E -H netsniff-ng.org
IPv4 trace of AS with TCP ECN SYN probe
ashunt -i eth0 -N -S -H netsniff-ng.org
IPv4 trace of AS with TCP SYN probe
ashunt -i eth0 -N -F -H netsniff-ng.org
IPv4 trace of AS with TCP FIN probe
ashunt -i eth0 -N -FPU -H netsniff-ng.org
IPv4 trace of AS with Xmas probe
ashunt -i eth0 -N -H netsniff-ng.org -X "censor-me" -Z
IPv4 trace of AS with Null probe with ASCII payload
ashunt -6 -S -i eth0 -H netsniff-ng.org
IPv6 trace of AS up to netsniff-ng.org
OPTIONS
-h|--help
Print help text and lists all options.
-v|--version
Print version.
-H|--host <host>
Host/IPv4/IPv6 to lookup AS route to
i-|-d|--dev <netdev>
Networking device, i.e. eth0
-p|--port <port>
Hosts port to lookup AS route to
-4|--ipv4
Use IPv4 requests (default)
-6|--ipv6
Use IPv6 requests
-n|--numeric
Do not do reverse DNS lookup for hops
-N|--dns
Do a reverse DNS lookup for hops
-f|--init-ttl <ttl>
Set initial TTL
-m|--max-ttl <ttl>
Set maximum TTL (default: 30)
-q|--num-probes <num>
Number of max probes for each hop (default: 3)
-x|--timeout <sec>
Probe response timeout in sec (default: 3)
-S|--syn
Set TCP SYN flag in packets
-A|--ack
Set TCP ACK flag in packets
-F|--fin
Set TCP FIN flag in packets
-P|--psh
Set TCP PSH flag in packets
-U|--urg
Set TCP URG flag in packets
-R|--rst
Set TCP RST flag in packets
-E|--ecn-syn
Send ECN SYN packets (RFC3168)
-t|--tos <tos>
Set the IP TOS field
-w|--whois <server>
Use a different AS whois DB server (default: /etc/netsniff-ng/whois.conf)
-W|--wport <port>
Use a different port to AS whois server (default: /etc/netsniff-ng/whois.conf)
--city-db <path>
Specifiy path for geoip city database
--country-db <path>
Specifiy path for geoip country database
AUTHOR
Written by Daniel Borkmann <daniel@netsniff-ng.org>
DOCUMENTATION
Documentation by Emmanuel Roullit <emmanuel@netsniff-ng.org>
BUGS
Please report bugs to <bugs@netsniff-ng.org>
2012-06-29 ashunt(8)