Search Results

Search: Posts Made By: nerdcurious
2,651
Posted By alister
If you have sufficient ram, you could have nawk...
If you have sufficient ram, you could have nawk read the tempfile once, when it starts, store its lines in an array, and then read the IDs from standard input. For each ID you can then iterate...
4,076
Posted By Corona688
That doesn't look like correct syntax for...
That doesn't look like correct syntax for awk/nawk. Nothing's inside a code block. Try putting it inside BEGIN { ... }
2,112
Posted By Peasant
I belive you are missing curly bracers and some...
I belive you are missing curly bracers and some ";"

nawk -v s=$x '{ if($2 == s); getline ; getline; if ($1 == "IMAGE_SIZE") print s":"$2"-"$3 }'
4,076
Posted By Corona688
It's taking negative numbers to mean parameters. ...
It's taking negative numbers to mean parameters. Try giving it -- to tell it there's no further parameters.

set -A arr -- ...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy