Skip to content

Use IFS to parse pipe delimited files #3

@sc0ttj

Description

@sc0ttj

Rewrite Pkg, a function at a time, to use the much nicer IFS method of parsing repo files:

IFS="|"
while read Field1 Field2 ... FieldN; do
#stuff with fields - there should be no cuts, greps, seds etc...
done < pkgdbFile

This will make Pkg faster to run, and also easier to maintain.

EDIT: see fixed example below

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