0
votes
1answer
36 views

Linux : Data extraction from text file

I have a text file in which thousands of data is there. eg. id=row_value profile=row_value name=row_value email=row_value address=row_value id=row_value2 profile=row_value2 name=row_value2 ...
0
votes
1answer
152 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
857 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
678 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
659 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 ...