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
mpgtx(1)							    User manual 							  mpgtx(1)

NAME
mpgtx, mpgsplit, mpgcat, mpgjoin, mpginfo, mpgdemux - manipulate mpeg files SYNOPSIS
mpgtx command [ options ] file [ range | file ] ... DESCRIPTION
mpgtx can split and join MPEG files in various ways. Three file types are currently handled (more to come): MPEG 1 Video files, MPEG 1/2 Audio files (mp1, mp2, and mp3), MPEG 1 System files (audio and video files), MPEG 2 Program files (Experimental), MPEG 2 Transport files (demultiplex and info modes only). mpgtx is a GOP (Group of Pictures) based editor. This means that mpgtx cuts MPEG files on a Group Of Picture basis, not on a frame-by-frame basis. A typical GOP duration is about 0.5 sec (approx. 15 frames), limiting the maximum accuracy of mpgtx. COMMANDS
-i prints information about files, such as duration, dimention, bitrate, etc. -j joins files (ranges may be specified, see the RANGES section). -s splits files according to the specified ranges (see the RANGES section). -d demultiplexes composite mpeg file. -T manipulates ID3v1 tags from mp3 files (see tagmp3(1)). -h prints a (not so) short help message. -v prints version and exit. -# where # is a number, splits the given files in # parts. --force enables joining of incompatible files (some players are very robust) --no-parachute prevents mpgtx to try to catch SIGSEGV signal. This is usefull for debugging. In addition, when invoked with the names mpgjoin, mpgcat, mpgsplit, mpgdemux, tagmp3 or mpginfo, mpgtx will modify its behaviour in the following ways: mpginfo behaves as mpgtx -i mpgsplit behaves as mpgtx -s mpgjoin behaves as mpgtx -j mpgcat behaves as mpgtx -j -o - mpgdemux behaves as mpgtx -d tagmp3 behaves as mpgtx -T OPTIONS
-f force overwriting of files, never ask. -Ax Change aspect ratio of mpeg. Valid are 1,2,3,4 for 1:1, 4:3, 16:9, 2.2:1 -P Keep junk or unusual headers in splits -X Desperate mode, search the whole movie for a valid PACK. In addition with Option -N no search infos will be displayed, only end sum- mary. -N Suppress progress output to the console. Speeds up operation a little on most Systems and much on Macintosh OS9. Suppress time line check in mpginfo mode. -b NAME each output file will have the basename NAME -o FILE FILE will be used as the output file (used with the join command). if FILE is -, standard output will be used. RANGES
Each range must follow a filename or another range. A range in an MPEG file can be specified using one of this three notations: Note for OSX Users: Ranges must be enclosed in single or double Quotes! [a-b] from value a inclusive to value b inclusive. If you want half opened ranges, you may want to use ]a-b], [a-b[ or ]a-b[. [n/ntot] the n th part out of ntot. [1/4] would result in the first quarter of the specified file. {a-b-...} with a , b , ... in ascending order. Split specified file at given boundaries. {55M} therefore means from beginnig of file to 55Megs and from 55Megs to the end of file. VALID VALUES
Values of ranges can be specified in seconds or as a byte offset. Time Format HH:MM:SS.SS where the HH: part can be omited Offset Format a number optionally followed by M for Megabytes k for kilobytes Omitted Values An empty value is valid and is equivalent to the corresponding file boundary: [-10M] are the first 10 Megabytes of the file. [1:10:04-] from 1 hour 10 minutes 4 seconds to the end of file. RETURN VALUE
All programs return 0 upon successful completion and 1 on failure. EXAMPLES
mpgjoin movie1.mpg [-0:32] [45M-75M] movie2.mpg -o joined.mpg joined.mpg will contain the first 32 seconds of movie1.mpg followed by 30 Megs of movie1.mpg starting at 45 Megs followed by the whole file movie2.mpg mpgtx -124 myfile.mpg -b output will split myfile.mpg in 124 parts with names output-001.mpg to output-124.mpg mpgtx -i Wazzup.mp3 will print infos about given file such as duration, bitrate, but also album, track, song name if this file has an ID3 tag. mpgcat myfile.mpg [2/2] | lpr will redirect the second half of myfile.mpg to your printer, emptying it from toner and paper and make you be fired by your boss... Use carefully. BUGS
Plenty of them :) GOP (Group of Picture) based: well this is not a bug but it's a limitation. As explained in the DESCRIPTION section, this limits the accu- racy of mpgtx on joins and splits to approximately 15 frames, or 0.5 seconds. Some artifacts can be seen with bad MPEG players playing joined files. These players don't take into account the broken link flag used to discard the first B frames they encounter. This is a bug in their MPEG decoding engine, not mpgtx. AUTHOR
Laurent Alacoque <laureck@users.sourceforge.net> CopyLeft 2001. Modified by Chris Danis <danish@debian.org>, copyleft 2001. Philipp Biermann <philipp@biermann.org>, copyleft 2002. Erik Schanze <schanzi_@gmx.de>, copyleft 2004. Get new releases and information from, and send patches, bugs, girls, money etc. to: http://mpgtx.sourceforge.net/ THANKS
for your attention. Have a good day. Godmar Back and Brent Phillips helped me to tune the command line interface. Volker Moell patiently teach me how to build rpms. Danke Volker. Jean Fransisco Sytem (alias Nicolas Schieli) helped me correct some nasty bugs. Thank you guys. Linux DECEMBER 2004 mpgtx(1)
All times are GMT -4. The time now is 09:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy