Skip to content

Commit

Permalink
use gid number
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jan 23, 2020
1 parent 8a937c9 commit f31e2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/user_metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ uid=$(id -u ${user})
gid=$(id -g ${group})
root=/global/cfs/cdirs/${group}/metadata
for filesystem in cfs tlprojecta; do
grep -E "${uid}\|${group}" ${root}/${date}.${filesystem}.${group}.txt | \
grep -E "${uid}\|${gid}" ${root}/${date}.${filesystem}.${group}.txt | \
cut -d\| -f16 | \
sed 's$%2F$/$g' | \
sed "s%.snapshots/${date}/%%g"
Expand Down

0 comments on commit f31e2ff

Please sign in to comment.