When I used the wrong flag in a command I received very unusual output:

Bug #2064165 reported by dhutchens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grep (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I used the wrong flag in a command I received very unusual output:

( I was trying to prevent the colorization of the grep output )

administrator@updatestestsvr:~$ sudo dmesg |grep -i -nocolor cpu
LinuxTestRemoteOffice.zip
lscpu-out.txt
directsetup/UEMSAgent.msi
directsetup/UEMSLinuxAgent.zip
directsetup/UEMS_LinuxAgent.bin
directsetup/UEMSMacAgent.zip
QualysCloudAgent.deb
.bash_history
testorgmainoffice06f8c4-5.7.8836-installer-x86-64.deb
.config/htop/htoprc
administrator@updatestestsvr:~$

------

Compare with the output of ls -la of current directory:

administrator@updatestestsvr:~$ ls -la
total 110680
drwxr-x--- 6 administrator administrator 4096 Apr 22 15:03 .
drwxr-xr-x 3 root root 4096 Apr 18 08:09 ..
-rw------- 1 administrator administrator 8019 Apr 25 17:00 .bash_history
-rw-r--r-- 1 administrator administrator 220 Jan 6 2022 .bash_logout
-rw-r--r-- 1 administrator administrator 3771 Jan 6 2022 .bashrc
drwx------ 2 administrator administrator 4096 Apr 18 08:13 .cache
drwx------ 4 administrator administrator 4096 Apr 18 16:15 .config
drwxrwxr-x 2 administrator administrator 4096 Apr 19 11:03 directsetup
-rw------- 1 administrator administrator 20 Apr 22 14:43 .lesshst
-rw-r--r-- 1 administrator administrator 67635706 Apr 19 10:51 LinuxTestRemoteOffice.zip
-rw-rw-r-- 1 administrator administrator 2421 Apr 18 10:43 lscpu-out.txt
-rw-rw-r-- 1 administrator administrator 535 Apr 22 14:39 missing_security_and_nonsecurity_updates.txt
-rw-rw-r-- 1 administrator administrator 0 Apr 22 14:39 missing_security_updates.txt
-rw-r--r-- 1 administrator administrator 807 Jan 6 2022 .profile
-rw-r--r-- 1 administrator administrator 16866090 Apr 18 15:34 QualysCloudAgent.deb
-rw-rw-r-- 1 administrator administrator 74 Apr 19 08:59 .selected_editor
drwx------ 2 administrator administrator 4096 Apr 18 08:09 .ssh
-rw-r--r-- 1 administrator administrator 0 Apr 18 08:13 .sudo_as_admin_successful
-rw-r--r-- 1 administrator administrator 28757540 Apr 17 16:42 testorgmainoffice06f8c4-5.7.8836-installer-x86-64.deb
-rw-rw-r-- 1 administrator administrator 115 Apr 18 10:46 uname-out.txt
-rw------- 1 administrator administrator 912 Apr 19 10:04 .viminfo
administrator@updatestestsvr:~$

------

It appears as though the grep'ing of that dmesg returned a subset of the files in the current directory.

( /home/administrator )
-----------

administrator@updatestestsvr:~$ uname -a

Linux updatestestsvr 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

-------------------

administrator@updatestestsvr:~$ lsb_release -rd

Description: Ubuntu 22.04.4 LTS
Release: 22.04

dhutchens (dhutchens)
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2064165/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → grep (Ubuntu)
tags: added: jammy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.