daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 17th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $> var=` find /tmp -name '*.xml' -exec sed -n 's/<Name>([^<]*)</Name>/1/p' {} +  |  xargs `
  2. $> echo $var
  3. TOPIC
  4. $>
  5.    
  6. $> printf "%qn" "$var"
  7. $'TOPICr'
  8. $>
  9.    
  10. $> [[ TOPIC == $var ]] && echo they are equal
  11. $>
  12.    
  13. $> echo $var
  14. TOPIC
  15. $>
  16.    
  17. $'TOPICr'
  18.    
  19. var=`find … | dos2unix | xargs`
RAW Paste Data
Top