ReachableCEO-Profile-FullTi.../build/build-client-submit-stage1.sh

66 lines
1.8 KiB
Bash
Raw Normal View History

2024-12-03 15:55:04 +00:00
#!/bin/bash
2024-12-04 15:26:29 +00:00
MarkdownOutputFile="../MarkdownOutput/client-submit/CharlesNWybleResume.md"
2024-12-03 15:55:04 +00:00
rm $MarkdownOutputFile
# Combine markdown files into single intermediate markdown file
2024-12-03 15:55:04 +00:00
#Pull in my contact info
2024-12-04 15:26:29 +00:00
cat "../boilerplate/Contact-Info-Client-Submit.md" >> $MarkdownOutputFile
2024-12-03 15:55:04 +00:00
echo " " >> $MarkdownOutputFile
echo "## Highlights from my 22 year IT career" >> $MarkdownOutputFile
2024-12-04 15:26:29 +00:00
cat ../SkillsAndProjects/Projects.md >> "$MarkdownOutputFile"
2024-12-03 15:55:04 +00:00
echo "\pagebreak" >> $MarkdownOutputFile
echo " " >> $MarkdownOutputFile
echo "## Employment History" >> $MarkdownOutputFile
echo " " >> $MarkdownOutputFile
#And here we do some magic...
#Pull in my :
# employer
# title
# start/end dates of employment
# long form position summary data from each position
IFS=$'\n\t'
for position in \
2024-12-04 15:26:29 +00:00
$(cat ../WorkHistory/WorkHistory.csv); do
2024-12-03 15:55:04 +00:00
COMPANY="$(echo $position|awk -F ',' '{print $1}')"
TITLE="$(echo $position|awk -F ',' '{print $2}')"
DATEOFEMPLOY="$(echo $position|awk -F ',' '{print $3}')"
echo "**$COMPANY | $TITLE | $DATEOFEMPLOY**" >> $MarkdownOutputFile
2024-12-03 15:55:04 +00:00
echo " " >> "$MarkdownOutputFile"
2024-12-04 15:26:29 +00:00
cat ../EmployerItems/$COMPANY.md >> "$MarkdownOutputFile"
2024-12-03 15:55:04 +00:00
echo " " >> "$MarkdownOutputFile"
done
unset IFS
#Pull in my skills and generate a beautiful table.
echo "\pagebreak" >> $MarkdownOutputFile
echo " " >> "$MarkdownOutputFile"
echo "## Skills" >> "$MarkdownOutputFile"
echo " " >> "$MarkdownOutputFile"
#Table heading
echo "|Skill|Experience|Skill Details|" >> $MarkdownOutputFile
echo "|---|---|---|" >> $MarkdownOutputFile
#Table rows
IFS=$'\n\t'
for skill in \
2024-12-04 15:26:29 +00:00
$(cat ../SkillsAndProjects/Skills.csv); do
2024-12-03 15:55:04 +00:00
SKILL_NAME="$(echo $skill|awk -F '|' '{print $1}')"
SKILL_YEARS="$(echo $skill|awk -F '|' '{print $2}')"
SKILL_DETAIL="$(echo $skill|awk -F '|' '{print $3}')"
echo "|**$SKILL_NAME**|$SKILL_YEARS|$SKILL_DETAIL|" >> $MarkdownOutputFile
done
unset IFS