07-20-2007
mask ID number
HP-UX 11i v2. #!/bin/sh
Hi all.
I have a flat file like this with lines like this:
|07/19/07|08:26AM|1|CupsCoffee|CupsCo|989898989 |Doe, John Y |THE PLUS CARD - Price| | |Y| | 2.00|
I would like to replace the id number (field 6) with a masked version, ie *****8989. Everything else stays the same. The field is always 9 characters. I was thinking about sed or maybe tr.
Thanks in advance!!!!
10 More Discussions You Might Find Interesting
1. IP Networking
Hi,
I have about 30 computers for users with subnet mask x.x.x.0, and 25 computers for workers with s.m. x.x.x.128. My server has a s.m. x.x.x.128 so with workers computers I can see my server and all the computers in that s.m., but I can't see the server from the users computers and I need to see... (7 Replies)
Discussion started by: Z0DiaC
7 Replies
2. Programming
Hi,
Could any one help me to write a C program for password mask
with ******. I mean whatever word i will type that will show on the screen as ***** and should store the correct value in a variable.
Thanks in advance
Krishna (5 Replies)
Discussion started by: krishna
5 Replies
3. IP Networking
What is the command to change the mask to 255.255.255.0
The system was set up incorectly and the mask needs to be corrected (1 Reply)
Discussion started by: kkinnon
1 Replies
4. Shell Programming and Scripting
Dear Guru,
I see the result after I run the script as below
I don't know what does it mean so please explain to me.
Thanl in advance (2 Replies)
Discussion started by: unitipon
2 Replies
5. Solaris
Hi,
I have a task to edit the subnet mask in almost 100+ solaris servers.Few of the servers are configured with IPMP.There will be no change of IP address or default gateway.If its a single IP we can bring NIC down,change the subnet mask in /etc/netmasks,then bring the NIC back to normal.But... (3 Replies)
Discussion started by: rajip23
3 Replies
6. Shell Programming and Scripting
I have an requirement. There is a file which has the below contents
Unix|123|17-01-2010
....
....
....
....
and so an
now each letter has a corresponding predefined mapping letter in order to mask the original data.(for example U = A,
n=b, i=c, x=d, same like number 1=9,2=8,3=7. Also... (8 Replies)
Discussion started by: ksmbabu
8 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
i am executing peoplesoft sqr command from unix prompt which has the unix id/password as parameter along with other parameters. i want to show whole command in log file but want to mask the id/password field. this command i am executing in shell script. Please suggest..
>sqr sqrname... (2 Replies)
Discussion started by: avi.coep
2 Replies
8. Red Hat
Hi Experts,
I'm using samba -3.6.1 on Red Hat Enterprise Linux ES release 4 (Nahant Update 8) ,all seems ok. The issue im facing is as follows.
When ever a user creates a file via windows explorer the permissions assgined to the file are as follows
-rw-rwxr--+ 1 tom group2 0 Mar 9... (1 Reply)
Discussion started by: maverick_here
1 Replies
9. UNIX for Dummies Questions & Answers
Hi Guys,
can someone explain what is mask and effective right mask in setfacl and
getfacl command with example, unable to get it. (3 Replies)
Discussion started by: Jcpratap
3 Replies
10. Shell Programming and Scripting
Hi all,
Im trying to use grep to match a exact mask where some characters are known and some are not. for example:
j***n@email.com
in this case the length is known and the position of the unknown characters are know (and will be )
any idea how I can do this? the file list is not just... (3 Replies)
Discussion started by: flamer
3 Replies
LEARN ABOUT DEBIAN
gnupod_search
GNUPOD_SEARCH(1) User Commands GNUPOD_SEARCH(1)
NAME
gnupod_search - search and remove files
SYNOPSIS
gnupod_search [OPTION]...
DESCRIPTION
Search and Remove files
--help display this help and exit
--version
output version information and exit
-m, --mount=DIRECTORY
iPod mountpoint. Default is $IPOD_MOUNTPOINT
-t, --title=STRING
search songs by Title
-a, --artist=STRING
search songs by Artist
-l, --album=STRING
search songs by Album
-i, --id=INT
search songs by ID
-g, --genre=STRING
search songs by Genre
-c, --playcount=COUNT
search songs by Playcount
-s, --rating=STARS
search songs by Rating (1 star = 20, 2 stars = 40 ...)
-R, --podcastrss=RSS
search songs by podcast-rss
-U, --podcastguid=GUID
search songs by podcast-guid
-b, --bitrate=BITRATE
search songs by Bitrate
-o, --match-once
Search does not need to match multiple times (like ($a || $b || $c))
--delete
Remove (!) matched songs from the iPod
--view=ialt
Modify output, default is 'ialt'
t = title a = artist r = rating p = path
l = album g = genre c = playcount i = id
--rename="KEY=VALUE"
Rename KEY into VALUE for matched songs.
Example: Rename the Artist 'Jon Doe' into 'John Doe'
gnupod_search --artist="Jon Doe" --rename="artist=John Doe"
AUTHOR
Written by Adrian Ulrich
REPORTING BUGS
Report bugs to <bug-gnupod@nongnu.org>
COPYRIGHT
Copyright (C) Adrian Ulrich
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
The full documentation for gnupod is maintained as a Texinfo manual. If the info program and GNUpod are properly installed at your site,
the command
info gnupod
should give you access to the complete manual.
gnupod_search 1.00 June 2005 GNUPOD_SEARCH(1)