Skip to content

Remove useless condition. #1

@immaroot

Description

@immaroot

On line 7 of burplist.sh we have:
awk ' {print;} NR % 1 == 0 { print "peter"; }' burplist.txt > burplistpeter.txt

The condition NR % 1 == 0 will always be true. Any integer modulo 1 always gives a 0 remainder.

I suggest replacing it with either:
awk '{print $1; print "peter"}' burplist.txt > burplistpeter.txt
or
awk '{print; print "peter"}' burplist.txt > burplistpeter.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions