This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Strategy: | |
# Remove all double quotes. | |
# Replace all tabs with double-quotes on either side of a comma. | |
# Add double-quotes to the beginning and the end of the line. | |
# Debian | |
sed -e 's/\"//g' -e 's/\t/\",\"/g' -e 's/^/\"/' -e 's/$/\"/' filename.tab > filename.csv | |
# OS X: The \t needs to be replaced by CTRL+v followed by a tab. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usermod -l newusername -d /home/newusername -m oldusername | |
groupmod -n newusername oldusername |
NewerOlder