GNU bug report logs - #17816
bug in cut, doesn't work normally with -f

Previous Next

Package: coreutils;

Reported by: Jim Michaels <jmichae3 <at> yahoo.com>

Date: Fri, 20 Jun 2014 08:24:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17816 in the body.
You can then email your comments to 17816 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#17816; Package coreutils. (Fri, 20 Jun 2014 08:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Michaels <jmichae3 <at> yahoo.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 20 Jun 2014 08:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Michaels <jmichae3 <at> yahoo.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: bug in cut, doesn't work normally with -f
Date: Fri, 20 Jun 2014 01:23:29 -0700
[Message part 1 (text/plain, inline)]
1.run firefox (am using linux mint 17 in virtual machine vbox) version 28.0

2.start xterm
3.ps -e | grep firefox | cut -f 2
this should be the equivalent of ps -C firefox -o pid=
actual:
 2366 ?        00:02:53 firefox
expected:
 2366

 
-------------
Jim Michaels
Jmichae3 <at> yahoo.com
JimM <at> RenewalComputerServices.com
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM & SSD measurements, microsoft disk size measurements (note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:

[kB] [MB] [GB] [TB]
[10^3B=1,000B=1kB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#17816; Package coreutils. (Fri, 20 Jun 2014 12:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 17816 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jim Michaels <jmichae3 <at> yahoo.com>
Cc: 17816 <at> debbugs.gnu.org
Subject: Re: bug#17816: bug in cut, doesn't work normally with -f
Date: Fri, 20 Jun 2014 13:40:32 +0100
tag 17816 notabug
close 17816
stop

On 06/20/2014 09:23 AM, Jim Michaels wrote:
> 1.run firefox (am using linux mint 17 in virtual machine vbox) version 28.0
> 
> 2.start xterm
> 3.ps -e | grep firefox | cut -f 2
> this should be the equivalent of ps -C firefox -o pid=
> actual:
>  2366 ?        00:02:53 firefox
> expected:
>  2366

cut defaults to tab field delimiters, which you would change with -d ' '
Note the _possible_ leading space are going to be problematic there so
you'd be better with something like:

  ps - e | awk '/firefox/{print $1}'

Though your already presented command is probably most efficient/accurate:

  ps -C firefox -o pid=

thanks,
Pádraig.





Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Fri, 20 Jun 2014 12:41:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17816 <at> debbugs.gnu.org and Jim Michaels <jmichae3 <at> yahoo.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Fri, 20 Jun 2014 12:41:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 19 Jul 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.