sed and grep stopped working!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

grep and sed stopped working!  I dnf re-installed them
both. No joy

What the heck (not my "actual" word)?


<editorial comment>  AAAAAAAAHHHHHHHHH!!!!!!!! </editorial comment>

How do I fix this?

Many thanks,
-T


uname -r
4.17.9-200.fc28.x86_64

# rpm -qa grep
grep-3.1-5.fc28.x86_64

# rpm -qa sed
sed-4.5-1.fc28.x86_64



$ echo "a-b-c" | sed -e 's/-//g'
<nothing>

Workaround:
    $ echo "a-b-c" | perl -pe 's/-//g'
    abc

    $ echo "a-b-c" | perl6 -pe 's:g/\-//'
    abc



$ ls -al /tmp | sed -n 3,4p
<nothing>

Workaround:
    $  ls -al /tmp  | perl6 -ne ".say if 3 <= ++$ <= 4"
    dr-xr-xr-x. 19 root root    278 Apr 11 20:43 ..
    drwxr--r--.  2 todd users    40 Aug 17 00:08 ARI

    $ x=3; y=4; ls -al /tmp  | perl6 -ne ".say if $x <= ++$ <= $y"
    dr-xr-xr-x. 19 root root    278 Apr 11 20:43 ..
    drwxr--r--.  2 todd users    40 Aug 17 00:08 ARI



# echo "abc" | grep  "ab"
<nothing>

Work around:
    $ echo "abc" | ack "ab"
    abc





_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/JX5UFWW53HVLKZEPLYNMK5YKOGCAOY2V/



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux