Skip to content

[scenario 4] Use 2>&1 instead of &> for error redirection #13

@pierrepo

Description

@pierrepo

The &> is non portable and for Bash > 4 only.

Instead of:

grep foo /shared/data/bank/homo_sapiens &> sdt_out_and_log.txt

we should have

grep foo /shared/data/bank/homo_sapiens 2>&1 >sdt_out_and_log.txt

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