Sponsored Content
Full Discussion: perl line needing a tweak
Top Forums Shell Programming and Scripting perl line needing a tweak Post 302649651 by richsark on Thursday 31st of May 2012 11:16:56 PM
Old 06-01-2012
Hey, Thanks for that, I just ran it...

I cant seem to understand why the below does not come out in the routine. This is just one I hand picked. Not sure if there are more
Code:
hostrecord,rich.sark.com,,10.8.2.1,,,,,,,True,,False,,,,,,,,,,,,,default
hostaddress,10.8.2.1,,rich.sark.com,,,,False,,,,,,,,,,,,default

Here is a small excerpt
Code:
hostrecord,acf0535r01.homeoffice.anfcorp.com,,10.8.202.10,,,,,,,True,,False,,,,,,,,,,,,,default
hostaddress,10.8.202.10,,acf0535r01.homeoffice.anfcorp.com,,,,False,,,,,,,,,,,,default
hostrecord,acf0535r02.homeoffice.anfcorp.com,,10.8.202.11,,,,,,,True,,False,,,,,,,,,,,,,default
hostaddress,10.8.202.11,,acf0535r02.homeoffice.anfcorp.com,,,,False,,,,,,,,,,,,default
hostrecord,acf0535r03.homeoffice.anfcorp.com,,10.8.202.12,,,,,,,True,,False,,,,,,,,,,,,,default
hostaddress,10.8.202.12,,acf0535r03.homeoffice.anfcorp.com,,,,False,,,,,,,,,,,,default
hostrecord,acf0535r04.homeoffice.anfcorp.com,,10.8.202.13,,,,,,,True,,False,,,,,,,,,,,,,default
hostaddress,10.8.202.13,,acf0535r04.homeoffice.anfcorp.com,,,,False,,,,,,,,,,,,default
hostaddress,10.11.18.3,,a10792-prnt01.stores.anfcorp.com,,,,False,,,,,,,,,,,,default
hostrecord,a10793-prnt01.stores.anfcorp.com,,10.10.133.131,,,,,,,True,,False,,,,,,,,,,,,,default
hostaddress,10.9.22.55,,a10935-prnt01.stores.anfcorp.com,,,,False,,,,,,,,,,,,default
hostrecord,a10935-prnt02.stores.anfcorp.com,,10.1.96.24,,,,,,,True,,False,,,,,,,,,,,,,default


Last edited by Franklin52; 06-01-2012 at 03:41 AM.. Reason: Please use code tags for data and code samples
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Needing a line feed for windows app

I wrote a program to format data with awk. This file will goto a windows machine and loaded into a windows app. The vendor said adding a line feed would help, but it would work as is. I am already doing a /n, will putting on the /r give the windows person what he wants. Thanks. (5 Replies)
Discussion started by: benefactr
5 Replies

2. UNIX for Dummies Questions & Answers

Intern needing to convert bash to perl.

Hello All. I am very new to Linux and I am currently interning. I have been working on a project for a week and I have had no success. I have to convert bash shell into perl to decrypt and store files. Here is the code in Linux and Bash. Any help would be greatly appreciated. $... (0 Replies)
Discussion started by: freak
0 Replies

3. Shell Programming and Scripting

How to tweak up

I have a script like this: while read abbrev; do sed 's/'$(echo "$abbrev" | tr "" "")'/'"$abbrev"'/g' 'output_rgt.'$$ >'tmp.'$$ mv 'tmp.'$$ 'output_rgt.'$$ done<'dict.shortcuts.'$$ And I don't know how to leave "mv" out. ('dict.shortcuts.'$$ may be... (14 Replies)
Discussion started by: MartyIX
14 Replies

4. Shell Programming and Scripting

Needing to wait for a line on screen and then give input repeatedly

So I have a weird question for my unix shell script. I wrote a shell script that does several things, but one of the things it does is call an executable. The executable then proceeds to start asking me questions, which it won't proceed until an input is entered. The answer to the questions is... (4 Replies)
Discussion started by: HelpMeProgram
4 Replies

5. Shell Programming and Scripting

SED script needs tweak

I have a SED script that has worked for years, but broke today due to a new variable in a remote file. This is the part of the script that now won't work: sed "s|/directory/overview.gif|/directory/img/overview2.gif|g" | \ The path /directory/overview.gif is no longer static as it had been... (2 Replies)
Discussion started by: dockline
2 Replies

6. Shell Programming and Scripting

Perl find command tweak

i use the following command to find files that were recently updated within the last hour: perl -MFile::Find -le' find { wanted => sub { -f and 3600 / 86400 >= -M and print $File::Find::name; } }, shift' /var/app/mydata/ this command works well. however, it seems to also search directories... (1 Reply)
Discussion started by: SkySmart
1 Replies

7. UNIX for Beginners Questions & Answers

Tar.gz help - Need to tweak

Hi Guys - I need help tweaking my tar.gz process. Currently, I compress all files in a directory, in which the parent directory is included in that. I only want to compress the "*.txt" files in the follow process: tar -zcvf ${_ESSB_TAR_PATH}/Essbase_Exports_${_DATETIMESTAMP}.tar.gz -C /... (3 Replies)
Discussion started by: SIMMS7400
3 Replies
bup-margin(1)						      General Commands Manual						     bup-margin(1)

NAME
bup-margin - figure out your deduplication safety margin SYNOPSIS
bup margin [options...] DESCRIPTION
bup margin iterates through all objects in your bup repository, calculating the largest number of prefix bits shared between any two entries. This number, n, identifies the longest subset of SHA-1 you could use and still encounter a collision between your object ids. For example, one system that was tested had a collection of 11 million objects (70 GB), and bup margin returned 45. That means a 46-bit hash would be sufficient to avoid all collisions among that set of objects; each object in that repository could be uniquely identified by its first 46 bits. The number of bits needed seems to increase by about 1 or 2 for every doubling of the number of objects. Since SHA-1 hashes have 160 bits, that leaves 115 bits of margin. Of course, because SHA-1 hashes are essentially random, it's theoretically possible to use many more bits with far fewer objects. If you're paranoid about the possibility of SHA-1 collisions, you can monitor your repository by running bup margin occasionally to see if you're getting dangerously close to 160 bits. OPTIONS
--predict Guess the offset into each index file where a particular object will appear, and report the maximum deviation of the correct answer from the guess. This is potentially useful for tuning an interpolation search algorithm. --ignore-midx don't use .midx files, use only .idx files. This is only really useful when used with --predict. EXAMPLE
$ bup margin Reading indexes: 100.00% (1612581/1612581), done. 40 40 matching prefix bits 1.94 bits per doubling 120 bits (61.86 doublings) remaining 4.19338e+18 times larger is possible Everyone on earth could have 625878182 data sets like yours, all in one repository, and we would expect 1 object collision. $ bup margin --predict PackIdxList: using 1 index. Reading indexes: 100.00% (1612581/1612581), done. 915 of 1612581 (0.057%) SEE ALSO
bup-midx(1), bup-save(1) BUP
Part of the bup(1) suite. AUTHORS
Avery Pennarun <apenwarr@gmail.com>. Bup unknown- bup-margin(1)
All times are GMT -4. The time now is 09:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy