10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I tried searching for a solution using the internet search but I haven't been able to find any solution for what I'm trying to accomplish.
I have a fixed width column file where I need to search for any occurrences of "D0" in col pos.#1-2, 10-11, 20-21 and replaced it with "XD".
... (2 Replies)
Discussion started by: pchang
2. Shell Programming and Scripting
I have an issue to split the file which is having special chracter(German Char) using awk command.
I have a different length records in a file. I am separating the files based on the length using awk command.
The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
3. Shell Programming and Scripting
I need to increment a value in the fixed length file. The file has almost a million rows. Is there any easy way to accomplish this.
ASDSD ADSD 00000 X
AAASD ADSD 00000 X
SDDDD ADSD 00000 X
ASDSD ADSD 00001 X
AAASD ADSD 00002 X
SDDDD ADSD 00003 X
... (7 Replies)
Discussion started by: saratha14
4. Shell Programming and Scripting
I working on ksh. I am using fixed length file. My file is like:
IXTTIV110827 NANTH AM IKSHIT
ABCDEF 0617 IJAY NAND EENIG
ZXYWVU 0912 AP OOK OONG
PQRSTU100923 NASA DISH TTY
ASDFG 0223 GHU UMA LAM
QWERT 0111 ATHE SH THEW
From 7th to 12 is a date... (4 Replies)
Discussion started by: AnanthaDikshit
5. Shell Programming and Scripting
I am new to awk and writing a script using awk. I have file containing fixed length records, I wish to extract 2 substring(each substring is padded with zeros on left e.g 000000003623) and add each substring respectively for every record in the file to get total sum of respective substring for all... (5 Replies)
Discussion started by: Devesh5683
6. Shell Programming and Scripting
I have fixed length input file like FHEAD0000000001XXXX20090901 0000009000Y1000XXX2
THEAD000000000220090901 ITM0000109393813 430143504352N22SP 000000000000RN000000010000EA P0000000000000014390020090901
Note... (4 Replies)
Discussion started by: bittoo
7. Shell Programming and Scripting
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
8. UNIX for Dummies Questions & Answers
I want to find out the record length of a fixed length file? I forgot the command. Any body know? (9 Replies)
Discussion started by: tranq01
9. Shell Programming and Scripting
$ cat template
$ sed "s/s.no/1/" template > out
$ sed "s/s.no/100/" template >>out
$ cat out
100Name (7 Replies)
Discussion started by: McLan
10. Shell Programming and Scripting
I have a file with fixed record length...
123445asdfg 4343777 sfgg
I wanna convert it to
123445,asdfg ,4343,777 ,sfgg
is there any way to do it?
at the moment I use sed -e 's_ \(\)_,\1_g'
but it works only if there are spaces between... (16 Replies)
Discussion started by: george_
MB_EREG_SEARCH_POS(3) 1 MB_EREG_SEARCH_POS(3)
mb_ereg_search_pos - Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string
array mb_ereg_search_pos ([string $pattern], [string $option = "ms"])
Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string
The string for match is specified by mb_ereg_search_init(3). If it is not specified, the previous one will be used.
- The search pattern.
- The search option.
An array containing two elements. The first element is the offset, in bytes, where the match begins relative to the start of the search
string, and the second element is the length in bytes of the match.
If an error occurs, FALSE is returned.
The internal encoding or the character encoding specified by mb_regex_encoding(3) will be used as the character encoding for this
PHP Documentation Group MB_EREG_SEARCH_POS(3)