Hey everyone
I have a file 'agenda' which contains:
Object Day Month Year
Birthday 09 02 2012
i want to extract from a script the line which contains the day the user typed.
for example if he type 09 the line is showed using the commande cut
using awk in terminal its working but with cut it isnt working it returns me just the number i typed
i did:
cat monagenda | cut -d" " -f2 | grep 09
cat monagenda | cut -d" " -f2 | sed -ne '/09/p'
both return just 09 otherwise i want to show the whole line
thank you and sorry for my bad english.