I have found a consistent "feature" in cut that is causing issues for what I am trying to accomplish.
I am pulling data from the system and trying to extract three pieces out of that data. What I am finding is that when the field of interest is the last field, cut is adding a ^M to the end of the line: vgdisplay > file1 cat file1 | egrep -e Name -e "PE Size" -e Free > file2 cut -b23- file2 > file3 cut -f1 -d' ' > file1 It is only at the last step that the ^M is added to the end of the volume group name extracted. I do not think that this should be happening. The other lines do not have the ^M appended. I have tried using a fourth file, but the error persists so I believe this is within the utility itself. I do not see this happening on HP-UX using the same basic code and method. >From /proc the version is: Linux version 2.4.21-47.ELsmp ([EMAIL PROTECTED]) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)) #1 SMP Wed Jul 5 20:38:41 EDT 2006 And from /etc/redhat-release: Red Hat Enterprise Linux AS release 3 (Taroon Update 6) And we are at core utilities: coreutils-4.5.3-28.4 > Regards, > David M Gambs > Linux Engineer > Solutions Engineering > IBM/CapitalOne > Int: 433-6519 > Ext: 804-284-6519 > cell: 804-201-3499 > The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
