I've a file named "test" that contains
linux Unixlinux Linuxunix it's linux l...x
now when i use
grep '\<l.*x\>' , it matches :
linux it's linux l...x
but when i use
grep '\<l*x\>' , it only matches:
l...x , but according to the reference guide,
when using * , The preceding item will be matched zero or more times, i.e it should match anything that starts with 'l' and ends with 'x'
Can anyone explain why ,it's not showing the desired result or if i've understood it wrong ?