Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!bin/bash
- echo $(pwd)/employeesdata.xls
- Path=$($pwd)/employeesdata.xls
- read Path
- if [ -e $Path ];
- then
- Username= [ grep $(Username) $Path | cut -f1 -d `]'
- Password= [ grep $(Password) $Path | cut -f2 -d `]'
- useradd -- b $Username
- echo $Password | /usr/bin/passwd --stdin $Username
- fi
- exit
- I know it doesn't have the email portion yet.
- $ cpan App::cpanminus
- $ cpanm Spreadsheet::ParseExcel
- #!/usr/bin/python
- from openpyxl import load_workbook
- wb = load_workbook(filename = 'file.xlsx', use_iterators = True)
- ws = wb.get_sheet_by_name(name = 'Feuil1') # ws is now an IterableWorksheet
- for row in ws.iter_rows(): # it brings a new method: iter_rows()
- for cell in row:
- print cell.internal_value
Add Comment
Please, Sign In to add comment