I have a file that looks like this
100:Marley:Crossan:803-555-2920:mcrossan0@simplemachines.org:71971:Hazelcrest:Columbia:29220:Ohio
101:Fidel:Branni:316-555-3295:fbranni1@themeforest.net:6:Prentice:Wichita:67205:Kansas
102:Dew:Aprahamian:952-555-3540:daprahamian2@howstuffworks.com:71:Northview:Monticello:55564:Minnesota
103:Isak:Fibben:816-555-3944:ifibben3@time.com:8:Lerdahl:Miami:64193:Florida
104:Arleta:Carden:608-555-0235:acarden4@utexas.edu:6:Mandrake:Madison:53790:Wisconsin
[This is fake personal info]
and I need to separate each information between ":" inside an xlsx file
I've tried to play around with it, but the farthest I got was this:
for x in $(grep "" $1 | cut -d: -f1 | cut -d: -f1)
do
echo -e "$x \\t" >> tests/infosEmployes.xlsx
done