Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. substitute strings with special characters in a huge file using sed
  2. echo "(alpha[1],alpha[2])" | sed 's/(alpha[1],alpha[2])/(i,j)/
  3.        
  4. echo "diff(A45(i,j),alpha[1])" | sed 's/diff(A45(i,j),alpha[1])/dzA45(i,j)/'