You can do this:
seq 100 | egrep -v "0$|5$"
basically it looks for and removes (-v
) any line ending in 0 or 5.
4
solved Printing numbers from one list, not found in another
You can do this:
seq 100 | egrep -v "0$|5$"
basically it looks for and removes (-v
) any line ending in 0 or 5.
4
solved Printing numbers from one list, not found in another