Home Using sed command in complex query
Reply: 0

Using sed command in complex query

user388 Published in June 20, 2018, 10:53 pm

So far I've been using sed command in easy cases like change every number 123 to 456 in every line in file, but now I have to do more complex query and I need help. Do you know how can I use sed command to solve this problem:

In every line in file abc.txt if there exists a number from set (123, 456, 789) and there exists number 4242 change number 4242 to 2424?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.253735 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO