Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend creating loop files in their own directory #273

Open
maneesha opened this issue May 21, 2024 · 0 comments
Open

Recommend creating loop files in their own directory #273

maneesha opened this issue May 21, 2024 · 0 comments

Comments

@maneesha
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant