language:
Deutsch (de_DE)
English (en_US)
Español (es_ES)
Français (fr_FR)
Italiano (it_IT)
日本語 (ja_JP)
Русский (ru_RU)
Türkçe (tr_TR)
中文简体 (zh_CN)
projects
/
contractdashboard.git
/ blobdiff
commit
author
committer
file
search:
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
unified
|
plain
2011 AT2.1 update
[contractdashboard.git]
/
admin
/
data
/
rename.sh
blob:
a/admin/data/rename.sh
-> blob:
b/admin/data/rename.sh
#!/bin/bash
for file in ./*.xls
do
echo "${file}"
newfile=`sed -n "4p" "${file}" | sed -e "s/\t/^/g" | cut -d"^" -f 4 | cut -d" " -f 1 | sed -e "s/-//g"`
mv "${file}" "${newfile}.xls"
done