Skip to content

Commit

Permalink
Add script to prepend name&rollno in source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinav Anand committed Sep 1, 2018
1 parent badc250 commit 36a88be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addheader.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for file in *.cpp *.h; do
cat header.txt "$file" > tempfile; mv tempfile "$file"
done
6 changes: 6 additions & 0 deletions header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Name: Abhinav Anand
* Roll Number: 2018201037
**/


0 comments on commit 36a88be

Please sign in to comment.