Last active
August 25, 2021 15:10
-
-
Save ISDementyev/e5c9fb0986ce341bdc3520cab7960a5f to your computer and use it in GitHub Desktop.
Creates a number of c files (see comments)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
c=".c" | |
for i in {1..10} ; do echo "#include <stdio.h>" > file$i$c | |
# the loop takes the #include statement and appends it into the first line of each file; done to avoid writing it out every time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment