I am try to match only the digits from a text file that is in this format:
> 1234
I'm running thru the file with a loop. Every line store in $i
$i | grep "\d{4}"
Output looks like this:
>
1234
>
5678
Why is it still outputing the >? I want to remove those.
$iat the start of the line will try to run a command with its value, e.g. a command called1234. I'm also confused about "what you are doing wrong." Your output doesn't look wrong to me...>. I'm trying to get rid of those.