Skip to content

Recommend creating loop files in their own directory #273

@maneesha

Description

@maneesha

How could the content be improved?

In the loop episode, the first step is to create some files using

$ touch a.txt b.txt c.txt d.txt

and then later to loop through them using

$ for filename in ?.txt
> do
>    echo "$filename"
>    cp "$filename" backup_"$filename"
> done

If those four files were created in the same directory that the lesson's data files were saved in, then the lesson's *.txt files would get used in this loop. If we don't want to include those, then the files created here should be in their own directory.

Which part of the content does your suggestion apply to?

https://librarycarpentry.org/lc-shell/03-working-with-files-and-folders.html#using-history

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