-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed consective HH commands, able to use file pathing across files
- Loading branch information
1 parent
515c3be
commit 06b0690
Showing
4 changed files
with
61 additions
and
119 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
#!/bin/bash | ||
|
||
username=$(whoami) | ||
folder_dir=$(find /home/$username -type d -name "HH-Results" ! -path "/home/*/*.*") | ||
logs_folder="$folder_dir/logs-folder" | ||
inp_folder="$folder_dir/inp-folder" | ||
for inp_file in $inp_folder/*; | ||
for inp_file in $1/HH-Results/inp-folder/*; | ||
do | ||
full_filename=$(basename $inp_file) | ||
file="${full_filename%.*}" | ||
|
||
hole < $inp_file >> "$logs_folder/$file.log" | ||
hole < $inp_file >> "$1/HH-Results/logs-folder/$file.log" | ||
done |
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
This file was deleted.
Oops, something went wrong.
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