Making the code line look nicer.

cstackpole
2014-07-19 10:45:51 -07:00
parent 0d19c59c2d
commit ade3aac258

@@ -15,6 +15,7 @@ Let's assume somewhere earlier in your code you have put data into a variable (E
### Contraindications
Occasionally a more complex sed substitution is required. For example, getting the last character of a string.
string="stirng" ; echo "$string" | sed -e "s/^.*\(.\)$/\1/"
This is a bit simple for the example and there are alternative ways of doing this in the shell, but this SC2001 flags on several of my crazy complex sed commands which are beyond the scope of this example. Utilizing some of the more complex capabilities of sed is required occasionally and it is safe to ignore SC2001.