Linux JMeter Tips

Monday, May 11, 2015

Sed Tips

Remove empty lines

sed '/^$/d'


Replace a string

sed 's/original/new/' - only first occurence of the line
sed 's/original/new/g' - all occurences
Posted by SS at 3:42 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

SS
View my complete profile

Blog Archive

  • ▼  2015 (11)
    • ▼  May (11)
      • Linux - remote ssh and execute commands
      • Grep and Awk Tips and Examples
      • Sed Tips
      • JMeter JSON Path extractor example
      • JMeter Response Assertion - matching for pattern
      • JMeter Adding a random number to input, within ran...
      • JMeter Socket read timeouts from jmeter
      • JMeter Regex operators in response
      • JMeter Using different forms of date, by means of ...
      • JMeter Setting user defined cookie
      • JMeter Passing variables between thread group
Powered by Blogger.