From 5c719293ede770801a9b59246881bbca0e7b5413 Mon Sep 17 00:00:00 2001
From: Luke Smith <luke@lukesmith.xyz>
Date: Thu, 21 Feb 2019 12:41:31 -0500
Subject: seq in place of retardation

---
 mw | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mw b/mw
index dc40a97..193a13b 100755
--- a/mw
+++ b/mw
@@ -138,8 +138,8 @@ EOF
 		type="IMAP"; ifgoogleline="remotehost = $imap"
 	fi
 	grep "i[0-9]" "$muttdir/personal.muttrc" | awk '{print $3}' | sed -e 's/i//g' > "$tmpdir/mutt_used"
-	printf "1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9" > "$tmpdir/mutt_all_possible"
-	idnum=$(diff "$tmpdir/mutt_all_possible" "$tmpdir/mutt_used" | sed -n 2p | awk '{print $2}')
+	seq 1 9 > "$tmpdir/mutt_all"
+	idnum=$(diff "$tmpdir/mutt_all" "$tmpdir/mutt_used" | sed -n 2p | awk '{print $2}')
 	getpass "$title"
 	getprofiles
 	mkdir -p "$HOME/.config/offlineimap/" "$HOME/.config/msmtp"
-- 
cgit v1.2.3