Search Results

Search: Posts Made By: adamreiswig
1,303
Posted By adamreiswig
Excellent! Changed the ' to " on the sed...
Excellent! Changed the ' to " on the sed statement and viola. Many thanks!

Although I'm unsure how the command line knows the difference between the text created by me and the sed statement. They...
1,303
Posted By adamreiswig
Text Highlighting Discrepancy, Caused by SED?
> reverse=`tput rev`
> revert=`tput sgr0`

> var="This is some note."
> echo $var
This is some note.

> var2="This is ${reverse}some${revert} note."
> echo $var2
This is some note.

>...
3,561
Posted By adamreiswig
> cat notes.data | sed...
> cat notes.data | sed 's/note\([^a-z]\|$\)/notez\1/g'
1<-->01/20/12<-->01/20/12<-->1st note<-->1st note<-NL->2 lines
2<-->01/20/12<-->01/20/12<-->2nd note<-->2nd note<-NL->more lines<-NL->here...
3,561
Posted By adamreiswig
Would that also work when "note" is not the last...
Would that also work when "note" is not the last word in the field? It could vary well be the first, last or anywhere in between. The problem I have run up against with regular expressions was...
3,561
Posted By adamreiswig
Changing exact matches with awk from subfields
To give you some context of my issue the following is some sample dummy data. The field delimiter is "<-->". The 4th field is going to be tags for my notes. The tags should always be unique and...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy