Hello, I've been busting my head to create a script or search with > export to find 2 things in files in sub directories. There are hundreds of files in tenths of sub directories which I need to extract a thing that is in a fixed line and something that is always after a string. For example: line 1 line 2 line 3 <--- this (fixed position, always in line 3) followed by lines that can be different and all sorts Unique string <--- and I want this too so I want 2 lines exported from each file that are included in sub directories. I tried doing this in separate searches, with awk, grep, sid and sometimes in combination with find, producing 2 different files that I hoped to combine when imported in a spreadsheet, but unfortunately all my results are not in a similar sorting order so I could match them. Is it possible to do this in one command or even a script or even 2 scripts that are in the same sorting order? For example I have succeeded in doing: grep -d recurse "string" * > /somewhere/strings.txt to get all unique strings and find . -type f | awk 'FNR == 12' **/* >/somewhere/fixedpositionedstrings.txt but when opening the files they are not in order, it's like the commands are reading the files in different order. The grep command is also typing the file it got the result from, if I could do it with awk that would also help me to work around it with sorting through a spreadsheet. Any help is appreciated.