User Tools

Site Tools


code:nice_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

code:nice_scripts [2006/07/15 23:33] (current)
Line 1: Line 1:
 +====== Nice Scripts ======
 +===== Welcome to shell programming ! =====
 +==== Parsing Configs ====
 +The file.csv file content is :
 +<​file>​
 +user0001;​password0001;​user0002;​password0002
 +user0011;​password0011;​user0012;​password0012 ...
 +</​file>​
 +
 +And the shell program is just :
 +  { while IFS=';'​ read u1 p1 u2 p2; do imapsync --user1 $u1 --password1
 +  $p1 --user2 $u2 --password2 $p2 ... done ; } < file.csv
  
code/nice_scripts.txt · Last modified: 2006/07/15 23:33 (external edit)