You should also state the operating system version you're using.
Is 50 the actual value that you're using or is it something larger?
And, please, don't edit error messages. Paste them verbatim whenever possible (I'm assuming that "..." in "Function ... cannot be parsed" is a placeholder).
While it may not be relevant to this problem, in the future please be specific when you state your OS. There is more than one version of AIX out there.
Pipe characters should not be a problem.
I believe your sed implementation only supports the closed interval 0 to 255.
Perhaps you can work around it thusly:
Note that it is logically required for the first count to be less than or equal to the second. Otherwise, erroneous results will ensue.
I'm curious regarding why your awk attempt did not work.
Hi Team,
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)
Hi all,
We are going through a total migration from AIX-based server framework to Linux-based servers. When I am testing *.sh and *.awk in a lower environments, it abends at the same step everytime in verifying the record length of the first row of the source file.
I know this source file... (11 Replies)
I have records with different lengths say 386, 387 and 388. Do i have any command to view all the records of the length 386 ? Please do advise.
Thanks (2 Replies)
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Hi Guys,
I wanted to print the length of each record and the record itself.
I tried the following awk ...
awk 'a=length(); {print $a,$0}' file1
But it is giving me the records instead of length.
and also, it giving me each record twice. Means the value of a is not the length of the... (0 Replies)
Hi,
I have a problem, please help me,
I have a flat file like this:
P00000000088888888999999999 0000999903 000000000000000000
P00000000077777777000000000 0000999903 000000000000000000
P00000000044444444333333333 0000999903 00000000000000000079875
P00000000066666666111111111 0000999903 ... (5 Replies)
Hi,
I have a KSH shell script running on hpux that uses the fl command - ex:
cat /foo | fl 50 > bar
This command will take each record in the file foo, make it 50 characters long and then write it to the file bar. my problem is that I am porting my scripts over to solaris which doesn't... (2 Replies)
hello!
I have a file with fixed record length...
format:
123445asdfg 4343777 sfgg
I wanna convert it to
123445,asdfg ,4343,777 ,sfgg
is there any way to do it?
sed/grep/awk??
at the moment I use sed -e 's_ \(\)_,\1_g'
but it works only if there are spaces between... (16 Replies)