0
votes
1answer
145 views

sed, grep, and awk file sorting

I'm trying to get all the files which have 'load' in their names from a directory. I'm trying to do: find -type f | sed -s 'load However, I recurrently receive an error sed: -e expression #1, char ...
2
votes
2answers
840 views

Grep for contents between two markers with newlines

Just curious if there's a way I can show the output between two markers? I was trying grep -r "<cron_expr>.*</run>" * but it doesn't seem to be returning as expected. Which is to say its ...
0
votes
3answers
641 views

Filter results into a usable variable

I run the following command: sudo iwlist eth0 scan and get output that looks like this: Cell 01 - Address: AB:CD:EF:12:34:56 ESSID:"name" Protocol:IEEE 802.11g ...
1
vote
2answers
641 views

how to use grep in a conditional search previous to a sed text replace command

I am trying to change the path in whole lot of m3u files. I know I can do it with regexxer f.e. but I'm trying to learn bash. This is the command I figured out, but it is not working. grep -lr -i -e ...