diff options
Diffstat (limited to 'stat.sh')
-rwxr-xr-x | stat.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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') |