If your replacement pattern file is in the format shown in post #1 or in the format shown in post #3, or if you are working on a system where setting FS to the empty string doesn't treat each input character as a separate field, you could this (although all of the field sizes and offsets are built into the code instead of being derived from an input operand):
If you want to try this on a Solaris/SunOS system, change awk to /usr/xpg4/bin/awk or nawk.
Is it possible for a internal LAN to mask a IP e.g. i have a server ip running the intranet ip being 192.168.0.8 and i want to make that like www.intranet.com is this possible on a internal network ? (1 Reply)
Hello,
I need to know that whether a content of a string can be hidden or masked inside a shell script.
My Sample Code is given below
<Code>
#!/usr/bin/ksh
Userid=test
DB=temp
Passwd=`java Decryption test`
# The Above command will get the encryped password for "test" user id and store... (2 Replies)
I have a pipe delimited file that I need to 'mask' to before loading to keep some data confidential. I need to maintain the first 4 bytes of certain columns and replace the remaining bytes with an 'x'. I would like to maintain spaces but it's not a requirement.
Example, need to mask columns 2... (2 Replies)
I am trying to redirect my site to another with masking using .htaccess.
I have the redirect working, but it does not mask. Here is what I have in my .htaccess:
RewriteEngine On
rewritecond %{http_host} ^http://www.securepaynet.net/default.aspx?ci=1767&prog_id=globalnerds
RewriteRule /... (0 Replies)
Hi I am facing an issue with the below script which has the below line
each field being separated with a tab.
I need to mask the 8 and 7th field based on following conditions
1. 8th field is 16 in length and is numerics
i will mask the middle 6 digits except the first 6 and last 4.
input... (2 Replies)
I am looking to forward the following with masking via my .htaccess file:
www.mywebsite.com/origpage www.mywebsite.com/newpage
I do not want to forward the entire site, just this one page with masking. Neither page has an extension. I am able to forward with .htaccess - but it does not mask the... (1 Reply)
So I've been working on this for some time now and can't seem to find the solution that works for me. I'm working in C/Unix. Basically, I want to take a user input and output something different. For example, I want to take a password and output *'s. In another instance, I want to take inputed... (35 Replies)
My file "test.dat" data as below
Requirement is to mask(replace) all english characters with "X" EXCEPT first 7 characters of every line.
my command
awk '{gsub("]","X")}1' test.dat
looks not working properly, Appreciate any suggestion... (6 Replies)
Discussion started by: JSKOBS
6 Replies
LEARN ABOUT DEBIAN
ost_ipv4mask
ost::IPV4Mask(3) Library Functions Manual ost::IPV4Mask(3)NAME
ost::IPV4Mask -
Internet addresses used specifically as masking addresses (such as '
255.255.255.0') are held in the IPV4Mask derived object.
SYNOPSIS
#include <address.h>
Inherits ost::IPV4Address.
Public Member Functions
IPV4Mask (const char *mask)
Create the mask from a null terminated ASCII string such as '255.255.255.128'.
IPV4Address & operator= (unsigned long addr)
Allows assignment from the return of functions like inet_addr() or htonl()
Friends
__EXPORT IPV4Host operator& (const IPV4Host &addr, const IPV4Mask &mask)
Masks are usually used to coerce host addresses into a specific router or class domain.
Additional Inherited Members
Detailed Description
Internet addresses used specifically as masking addresses (such as '
255.255.255.0') are held in the IPV4Mask derived object.
The separate class is used so that C++ type casting can automatically determine when an IPV4Address object is really a mask address object
rather than simply using the base class. This also allows manipulative operators for address masking to operate only when presented with a
Masked address as well as providing cleaner and safer source.
Author:
David Sugar dyfet@ostel.com Internet Address Mask such as subnet masks.
Constructor & Destructor Documentation
ost::IPV4Mask::IPV4Mask (const char *mask)
Create the mask from a null terminated ASCII string such as '255.255.255.128'. Parameters:
mask null terminated ASCII mask string.
Member Function Documentation
IPV4Address& ost::IPV4Mask::operator= (unsigned longaddr) [inline]
Allows assignment from the return of functions like inet_addr() or htonl()
Reimplemented from ost::IPV4Address.
References ost::IPV4Address::operator=().
Friends And Related Function Documentation
__EXPORT IPV4Host operator& (const IPV4Host &addr, const IPV4Mask &mask) [friend]
Masks are usually used to coerce host addresses into a specific router or class domain. This can be done by taking the Inet Host Address
object and 'and'ing it with an address mask. This operation can be directly expressed in C++ through the & operator.
Returns:
a internet host address that has been masked.
Parameters:
addr host address to be masked by subnet.
mask inetnet mask address object to mask by.
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::IPV4Mask(3)