What I'm trying to do is perform a copy, well a ditto actually, on the results of a find command, but some inline string substitution needs to happen.
So if I run this code find ./ -name "*.tif" I get back these results.
.//1234567.tif
.//abcdefg.tif
Now the action from exec or xargs I... (2 Replies)
I'm trying to get a case statement to start over if an undefined option is selected... But I am ata loss on how to actually do it.
Here is a quick example of what I have.
Echo "1) do this/n
2) Do that/n
3) Quit/n
Make a selection/n"
Read answer
Case answer in
1) Dothid;;
2) Dothat;;... (3 Replies)
1. The problem statement, all variables and given/known data:
I have standard web server log file. It contains different columns (like IP address, request result code, request type etc) including a date column with the format .
I have developed a log analysis command line utility that displays... (1 Reply)
In a shell script, I need to grab the first or second line after a search string in a file. For example:
File.out:
Random Info
Manufacturer: XYZPDQ
System Info
Manufacturer: Hewlett-Packard
Product Name: ProLiant
I search for the word FILE, I want to be able to grab the line... (1 Reply)
Hello Unix gurus,
I have a gzipped file where each line contains 2 street addresses in the US. What I want to do is get a count for each state that does not match.
What I have so far is:
$ gzcat matched_10_09.txt.gz |cut -c 106-107,184-185 | head -5
CTCT
CTNY
CTCT
CTFL
CTMA
This cuts... (5 Replies)
I have a file like this
2011-10-10 10:46:00,1-1-13-1-1,151510,ALCLA0A84D2C
2011-10-10 10:46:00,1-1-13-1-1,151520,65537
2011-10-10 10:46:00,1-1-13-1-1,151515,46932
2011-10-10 10:46:00,1-1-13-1-1,151521,32769
2011-10-10 10:46:00,1-1-13-1-1,151522,32769
2011-10-10... (4 Replies)
Hello there! I'm having a lot of trouble writing a script.
The script is supposed to:
1) Find all files with the name "Object.mtl" within each folder in the directory: /Users/username/Desktop/convert/Objects
2) Search and replace the string ".bmp" with ".tif" (without the quotations)
3)... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. How can i use loop to repeat task.
2.shirt=15
black=13.50
echo "how many shirt you want"
read num
echo
echo "Please enter a choice"
echo "1 ---> normal... (5 Replies)
Hi all,
I'm struggling with this task and have done alot of googling but not found the solution or atleast not found a way to combine them, i'm hoping someone here can help me out.
I have a file that contains many line of config "below is two lines for an example"
323 => 1111,Terry berry... (3 Replies)
In the file below I am trying to count the given repeats of A,T,C,G in each string of letters. Each sequence is below the > and it is possible for a string of repeats to wrap from the line above. For example, in the first line the last letter is a T and the next lines has 3 more. I think the below... (10 Replies)
Discussion started by: cmccabe
10 Replies
LEARN ABOUT DEBIAN
ipv6loganon
ipv6loganon(8)ipv6loganon(8)NAME
ipv6loganon - HTTP server log file anonymizer
SYNOPSIS
ipv6loganon [ -d value ] [ -V ] [ -n ] [ -c value ] [ --mask-ipv4 bits ] [ --no-mask-iid ] [ --anonymize-standard ]
DESCRIPTION
ipv6loganon is a HTTP server log file anonymizer
It expects a log line on stdin with an IPv4/IPv6 address as first token.
This token would be anonymized according to given/default options.
The anonymizer would keep as much information as possible for IPv6 address types.
Client-side IID would be anonymized by
o EUI-48 based: serial number would be zero'ed, keeping OID
o EUI-64 based: serial number would be zero'ed, keeping OID
o ISATAP: client IPv4 address would be anonymized by given IPv4 mask
o TEREDO: client IPv4 address would be anonymized by given IPv4 mask, client port would be zero'ed
o 6to4(Microsoft): client IPv4 address would be anonymized by given IPv4 mask
o local: whole IID would be zero'ed
Client-side SLA would be anonymized by
o SLA would be zero'ed
Prefix would be anonymized by
o 6to4: client IPv4 address would be anonymized by given IPv4 mask
Compat/Mapped IPv4 addresses would be anonymized by
o IPv4 address would be anonymized by given IPv4 mask
Afterwards, the modified address and the trailing line would be printed to stdout.
OPTIONS
GENERAL
-d, --debug <debug value>
debug value (bitwise like)
-V, --verbose
be verbose
-n, --nocache
disable caching
-c, --cachelimit
set cache limit (default: 20, maximum: 200)
OUTPUT ANONYMIZATION
--mask-ipv4 <bits>
mask all IPv4 addresses [0-32], default 8 even if occurs in IPv6-IID
--no-mask-iid
do not mask non-IPv4 based IPv6-IID
--anonymize-standard
preset for standard anonymization
Default settings: mask-ipv4=8 mask-iid
EXAMPLE
Original lines (stdin):
207.46.98.53 - - [01/Jan/2007:00:01:15 +0100] "GET /Linux+IPv6-HOWTO/x1112.html HTTP/1.0" 200 6162 "-" "msnbot/1.0
(+http://search.msn.com/msnbot.htm)" 253 6334
2002:52b6:6b01:1:216:17ff:fe01:2345 - - [10/Jan/2007:15:04:28 +0100] "GET /favicon.ico HTTP/1.1" 200 4710
"http://www.bieringer.de/linux/IPv6/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Fedora/1.5.0.9-1.fc6 Fire-
fox/1.5.0.9 pango-text" 413 5005
Modified lines (stdout):
207.46.98.0 - - [01/Jan/2007:00:01:15 +0100] "GET /Linux+IPv6-HOWTO/x1112.html HTTP/1.0" 200 6162 "-" "msnbot/1.0
(+http://search.msn.com/msnbot.htm)" 253 6334
2002:52b6:6b00:0:216:17ff:fe00:0 - - [10/Jan/2007:15:04:28 +0100] "GET /favicon.ico HTTP/1.1" 200 4710
"http://www.bieringer.de/linux/IPv6/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Fedora/1.5.0.9-1.fc6 Fire-
fox/1.5.0.9 pango-text" 413 5005
AUTHORS
Peter Bieringer <pb@bieringer.de>
SEE ALSO ipv6calc(8)Niko Tyni <ntyni@iki.fi> 2007-02-01 ipv6loganon(8)