minus-squareunlawfulbooger@lemmy.blahaj.zonetoLinux@programming.dev•regex and awk...linkfedilinkarrow-up4·edit-21 month agoYou could try [0-9] instead? awk '/\/dev\/loop[0-9]/ {print}' If you have a larger sample of input and desired output, people can help you better. linkfedilink
minus-squareunlawfulbooger@lemmy.blahaj.zonetoTenForward: Where Every Vulcan Knows Your Name@lemmy.world•*Permanently Deleted*linkfedilinkarrow-up1·4 months agoEw linkfedilink
unlawfulbooger@lemmy.blahaj.zone to TenForward: Where Every Vulcan Knows Your Name@lemmy.world · edit-21 year agoPolitics? In my space stories???lemmy.blahaj.zoneimagemessage-square0linkfedilinkarrow-up11arrow-down11
arrow-up10arrow-down1imagePolitics? In my space stories???lemmy.blahaj.zoneunlawfulbooger@lemmy.blahaj.zone to TenForward: Where Every Vulcan Knows Your Name@lemmy.world · edit-21 year agomessage-square0linkfedilink
You could try [0-9] instead?
awk '/\/dev\/loop[0-9]/ {print}'
If you have a larger sample of input and desired output, people can help you better.