Search Results

Search: Posts Made By: aden
1,668
Posted By RudiC
Try awk '{FN=$1".txt"; KR=$2; LL=$3; LH=$4; while...
Try awk '{FN=$1".txt"; KR=$2; LL=$3; LH=$4; while (getline < FN) if ($3==KR && $2 >= LL && $2 <= LH) print}' aa.txt
You may need to print to individual files, e.g. FN".new".
1,668
Posted By Yoda
Here is one way of doing this: #!/bin/bash ...
Here is one way of doing this:
#!/bin/bash

for file in *.txt
do
[ "$file" = "aa.txt" ] && continue

echo "Fixing file: $file"

awk '
NR == FNR {
...
Showing results 1 to 2 of 2

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