Skip to content

Reads file command 'r' not support Group commands '{ cmd ; cmd ... }' #7

@tinyhare

Description

@tinyhare
root@house:~# echo 'bbbbb' > file.txt
root@house:~# echo -e "aaaaa\nBBBBB\nccccc" | sed -e '/BBBBB/ r file.txt' -e '/BBBBB/ d'
aaaaa
bbbbb
ccccc
root@house:~# echo -e "aaaaa\nBBBBB\nccccc" | sed '/BBBBB/ {r file.txt;d}'
sed: -e expression #1, char 0: unmatched `{'
root@house:~#
root@house:~# sed --version
sed (GNU sed) 4.9
Packaged by Debian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions