Hi I need to run ‘sed’ command on file1.txt and have it extract all names that are in between StringA and StringB… ex: “Nickname”:”bad_name”, extract bad_name and then save all results too Output.txt. is this even possible or should I be looking at another command?
Share
without showing more sample of your file1.txt, i am assuming you have consistent data format. If it is, then use awk
For a file, just input the file name
Otherwise, provide more sample data for us to work with.