Search Results

Search: Posts Made By: ironmix
3,734
Posted By ironmix
I decided to strip out the NULLs and replace with...
I decided to strip out the NULLs and replace with spaces. I could not get tr to work either. Maybe an issue with Solaris??
Below perl code worked though:

perl -pe 's/\000/ /g' file > newfile
...
3,734
Posted By ironmix
just realized one of my lines I edited was long....
just realized one of my lines I edited was long. re-attached
3,734
Posted By ironmix
uploaded example of input. You can see NULL...
uploaded example of input. You can see NULL values in TextPad editor. Don't use in notepad and wordpad - they show up as spaces. In UNIX vi - the values are ignored.
3,734
Posted By ironmix
my point was that both your code and mine are not...
my point was that both your code and mine are not working. Let me try to explain my problem again. I have a fixed length file that I am reading every line and making sure every line is exactly 161...
3,734
Posted By ironmix
mmm
Thanks - but that code actually stops at the first NULL and truncates the line length and fails the length check.
Any other ideas
3,734
Posted By ironmix
include NULLs in line length check
Hello,
I am checking the length of each line of a fixed length file and making sure all lines are 161 length. My problem is that some files contain null characters which gets stripped out of my...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy