Skip to content

Commit 9f989cd

Browse files
authored
Merge pull request #29 from harleypig/find_grep_mktemp
mktemp is a better way to manage tmp files
2 parents 7e98d7a + 744c1a3 commit 9f989cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

recipes/Bash/578661_find__grep/recipe-578661.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env zsh
22

3-
tmp_file="/tmp/_unsorted_find_n_grep"
3+
tmp_file="$(mktemp)"
44
echo "--- find <$2> in <$1>" > $tmp_file
55

66
find . -follow -iname "$1" | while read file

0 commit comments

Comments
 (0)