Conversation:
Notices
-
Chimo (chimo)'s status on Monday, 09-Mar-2015 20:21:07 EDT
Chimo
@lnxw48 `cut' maybe? cut -d "[" -f2 bar | cut -d "]" -f -
Chimo (chimo)'s status on Monday, 09-Mar-2015 20:22:22 EDT
Chimo
ugh. copy/paste fail. There should be a '1' after that 2nd 'f'. Anyway, it could probably be improved depending on the input too. -
Chimo (chimo)'s status on Monday, 09-Mar-2015 20:24:19 EDT
Chimo
Also "bar" is the file in this case. I should probably proofread my stuff before hitting "send" :\ -
MMN-o ✅⃠ (mmn)'s status on Tuesday, 10-Mar-2015 04:55:11 EDT
MMN-o ✅⃠
@lnxw48 cut is pretty good easy compared to regexps. Try piping through this and you are probably well on your way: | cut -d '[' -f 2
-