cat my.log
blah blah blah
< 1 djfh jsdfhk jksdfh
< 2 dshkfl opeir pqowi
< 4 khasd wouipeui
say i am perfroming some action similar to below...
cat my.log | egrep "<" | awk -F' ' '{print $2}' | grep -v "[A-Za-z]"
it gives output as below
1
2
4
is there anyway to modify above same command so that output is displayed like below
[CODE]1, 2, 4/CODE]