I have a file that looks like this
100:Marley:Crossan:803-555-2920:[email protected]:71971:Hazelcrest:Columbia:29220:Ohio
101:Fidel:Branni:316-555-3295:[email protected]:6:Prentice:Wichita:67205:Kansas
102:Dew:Aprahamian:952-555-3540:[email protected]:71:Northview:Monticello:55564:Minnesota
103:Isak:Fibben:816-555-3944:[email protected]:8:Lerdahl:Miami:64193:Florida
104:Arleta:Carden:608-555-0235:[email protected]: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