From 2a5c2b783e88381dfdda3e66bed8274d38f4f1b0 Mon Sep 17 00:00:00 2001 From: mplorentz Date: Thu, 1 Aug 2024 09:07:23 -0400 Subject: [PATCH] Update npubsToPubkeys.sh to format keys for config --- npubsToPubkeys.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/npubsToPubkeys.sh b/npubsToPubkeys.sh index e36374fe..7a7cb31d 100755 --- a/npubsToPubkeys.sh +++ b/npubsToPubkeys.sh @@ -8,10 +8,4 @@ fi input_file="$1" -# Read the input file line by line -while IFS= read -r npub; do - # Run the command for each npub and output the result - result=$(nostrkeytool --npub2pubkey "$npub") - echo "$result" -done < "$input_file" - +cat $input_file | xargs nak decode | jq .pubkey | sed 's/$/,/' | sed 's/^/ /' | pbcopy