From 914a1bf4d895a986adaa240e857b95c7f49fed4c Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 9 Feb 2018 23:47:29 -0700 Subject: initial commit --- stat.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 stat.sh (limited to 'stat.sh') diff --git a/stat.sh b/stat.sh new file mode 100755 index 0000000..fa0143f --- /dev/null +++ b/stat.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Gets all accounts used by offlineimaps. + +cat ~/.offlineimaprc | grep "^accounts =" | sed -e 's/accounts =\( \)//g;s/\(,\) /\n/g;' +# Another option +# Get current accounts +#accountsline=$(cat ~/.offlineimaprc | grep ^accou | sed 's/,//g') -- cgit v1.2.3