Sponsored Content
Top Forums Shell Programming and Scripting Masking Bank Account Number except last 4 digits in the file Post 303023141 by Pradeep R on Wednesday 12th of September 2018 11:40:20 AM
Old 09-12-2018
Thank you so much guys. It's really helped me.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

restrain the number of digits of a PID

How is it possible under UNIX to restrain the number of digits of the PID number? For instance, we have a product that generates a PID of 7 digits, and we would like to have only 6 digits maximum instead for the PID. Thank you for your help. (1 Reply)
Discussion started by: mlefebvr
1 Replies

2. Shell Programming and Scripting

Count number of digits in a word

Hi all Can anybody suggest me, how to get the count of digits in a word I tried WORD=abcd1234 echo $WORD | grep -oE ] | wc -l 4 It works in bash command line, but not in scripts :mad: (12 Replies)
Discussion started by: ./hari.sh
12 Replies

3. Emergency UNIX and Linux Support

Masking of number

BAT:0310:2009-08-0:Y4 :H:D:00003721:03103721.IFH:00138770:05767:00000000001279' EXR:CLP:912.570000' STA:A:9071559:2009-08-10::Wer::Mrs' DEF::531.97:531.97:310221661617::+ABC:BAL:1:N::::5:40.00:0.00:2009-08-10:CN:1111111111109962::3:N:missc :N:PH:00010833:... (5 Replies)
Discussion started by: mad_man12
5 Replies

4. Shell Programming and Scripting

number of digits after decimal

Hi All, I have a file of decimal numbers, cat file1.txt 1.1382666907 1.2603107334 1.6118799297 24.4995857056 494.7632588468 560.7633734425 ..... I want to see the output as only 7 digits after decimal (5 Replies)
Discussion started by: senayasma
5 Replies

5. Shell Programming and Scripting

summing the digits of a binary nuMBER

please help me write a perl program to find the difference of 1 and zeros of a 6 digit binary number. eg If input is 111100 expected output +2 if input is 000011 expected output -2 input is 000111 expected output 0 (2 Replies)
Discussion started by: dll_fpga
2 Replies

6. Shell Programming and Scripting

extracting Number variable and the following digits.

HI all, I have output of something like this: crab: ExitCodes Summary >>>>>>>>> 12 Jobs with Wrapper Exit Code : 50117 List of jobs: 1-12 See https:///twiki/something/ for Exit Code meaning crab: ExitCodes Summary >>>>>>>>> 5 Jobs with Wrapper Exit Code : 8001 List of... (20 Replies)
Discussion started by: emily
20 Replies

7. Shell Programming and Scripting

awk changes to cut number of digits

HCPM1ONDB00014800011800000589009211201 L201307022013070228AUD 00000000031. 000965105800000000000000000000000 MOBITV KEYA ... (4 Replies)
Discussion started by: mirwasim
4 Replies

8. Shell Programming and Scripting

Find number of digits in a word

HI, Can you tell me how to find the number of digits in a word. $cat data.txt +123456ad 87645768 Output should be 6 8 (5 Replies)
Discussion started by: ashwin3086
5 Replies

9. Post Here to Contact Site Administrators and Moderators

Verify from one account number to another account number

Hi, Can anyone suggest me for the below steps. Here the index files is nothing but a text file and In index file there are n number of pdf files. Step 0 check out if this is for A(index file) or B(index file) 1. Read the first line of the original index file 2. Read the 9th character... (1 Reply)
Discussion started by: pavand
1 Replies
PTSB(1p)						User Contributed Perl Documentation						  PTSB(1p)

NAME
ptsb - Interact with you Permanent TSB homebanking from your shell! SYNOPSIS
ptsb [options] Print accounts balance: "ptsb [ -F /path/of/conf/file ] -b" Print account statement: "ptsb [ -F /path/of/conf/file ] -s -a c -n <4digits" -f yyyy/mm/dd -t yyyy/mm/dd> If your are running Linux you can use the date --date command to simplify the date range definition. You can put these aliases on your ~/.bashrc: alias ptsb_stat='ptsb --statement -a c -n xyzt' alias ptst_last_month="statement_current -f `date +%Y/%m/%d --date='1 month ago'` -t `date +%Y/%m/%d`" OPTIONS
-h | --help this help usage message! -D | --debug Enable debug. This will be more verbose and will leave html on the current working directory. -F /path/to/config/file | --file /path/to/config/file filename configuration file path (default: ~/.ptsbrc). Please refer to manual page to see how this file is built. -b | --balance print account balance -s | --statement print account statement -T type | --transation-type type Type of transaction to look on the statement. Type can be: ALL, WITHDRAWAL, DEPOSIT -f | --from--date yyyy/mm/dd from date -t | --to-date yyyy/mm/dd to date -a [c | v] | --account-type [c | v] account type: can be 'c' (current account) or 'v' for (visa card) -n digits | --account-num digits 4 digits representing the last 4 digits of the account number or visa card number. -N | --no-balance Do not print balance when printing statement. -r | --regexp When printing statement grep using the regexp provided -e | --expr where expression is a mathematical expression like '<300' '=300' '>=300' the expression will test the euro amount column only lines matching the expression will be printed -g | --graph Print graph of the statement using gnuplot. Gnuplot is required! -i path | --image path Save PNG image in path. -o filename | --output filename Save the output of the statement inside a CSV file named filename. CSV format is: date,description,amount,balance last field presence depends on the -N flag. -v | --version Print version CONFIGURATION FILE
Configuration file default location is ~/.ptsbrc and it looks like this: -------8< -- ~/.ptsbrc -->8---------- open24_number=your_open24_number password=your_internet_password pan=your_personal_access_number -------8< --------------->8---------- However you can put wherever you want. Just remember to use then the option -F /path/to/your/location. Lines beginning with # will be interpreted as comment. Starting from release 0.08 ptsb will use GnuPG to encrypt the configuration file using the private key of the user. Therefore you'll have to create your key if you didn't do this yet. In case you want to decrypt your ptsbrc file use this command: $ gpg -d /path/to/your/ptsbrc This will print the encrypted file on the standard output. SEE ALSO
o Official CPAN page for Finance::Bank::IE::PermanentTSB http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm <http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm> o Author homepage <http://www.pallotron.net> o Author Blog (italian) <http://www.vitadiunsysadmin.net> o Author homepage on CPAN <http://search.cpan.org/~pallotron/> AUTHOR
Angelo "pallotron" Failla - <pallotron@freaknet.org> BUGS
Please report bugs to the author, no bug tracking system is set up yet. COPYRIGHT AND LICENSE
Copyright (C) 2009 by Angelo "pallotron" Failla This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.12.3 2009-02-17 PTSB(1p)
All times are GMT -4. The time now is 05:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy