Timeline for Working with columns - awk and sed
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 26, 2012 at 20:08 | comment | added | bourne | Thank you for the explanation. I am starting to understand it a little more. A friend of mine actually created a little script to test the use of the '&' and it is making it make more sense. Thanks again! | |
| Jul 26, 2012 at 3:07 | comment | added | Ulrich Dangel |
@bourne you are right - see gnu.org/software/gawk/manual/html_node/String-Functions.html If the special character ‘&’ appears in replacement, it stands for the precise substring that was matched by regexp.
|
|
| Jul 26, 2012 at 2:26 | vote | accept | bourne | ||
| Jul 26, 2012 at 2:25 | vote | accept | bourne | ||
| Jul 26, 2012 at 2:26 | |||||
| Jul 26, 2012 at 2:25 | comment | added | bourne | This is awesome! Worked perfectly. Thank you!!!! Sorry to ask another dumb question. does the second gsub with "&:" put the semi-colon in the correct place? I was just trying to figure out the purpose of the "&". and the last sub removes the trailing semi-colon that is left over? | |
| Jul 25, 2012 at 22:52 | history | answered | Ulrich Dangel | CC BY-SA 3.0 |