Timeline for Grep with output of not the complete line
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 9 at 1:03 | history | edited | cas | CC BY-SA 4.0 | edited body |
| Oct 8 at 19:40 | comment | added | Luuk | Using gawk: gawk '{ match($0,"blue"); delete a; if(RSTART!=0) { split(substr($0,RSTART+RLENGTH+1),a); print substr($0,RSTART,RLENGTH),a[1]; }}' f.txt | |
| Oct 8 at 10:41 | comment | added | cas | for anything more complicated than this, you should use perl. or maybe awk (but awk would be more work) | |
| Oct 8 at 10:31 | history | answered | cas | CC BY-SA 4.0 |