grep -f файл1 файл2
-f FILE, --file=FILE
Obtain patterns from FILE, one per line. If this option is used multiple times or is combined with the -e (--regexp) option, search for all patterns given. The empty file contains zero patterns, and therefore matches nothing.
--client-nat snat|dnat network netmask alias
This pushable client option sets up a stateless one-to-one NAT rule on packet addresses (not ports), and is useful in cases where routes or ifconfig settings pushed to the client would create an IP numbering conflict.network/netmask (for example 192.168.0.0/255.255.0.0) defines the local view of a resource from the client perspective, while alias/netmask (for example 10.64.0.0/255.255.0.0) defines the remote view from the server perspective.
Use snat (source NAT) for resources owned by the client and dnat (destination NAT) for remote resources.
нужно найти цену на каждый товар в каждом месте на текущую дату. Поскольку существует много цен на одну и ту же комбинацию item/location, используйте значения sales_retail, наиболее близкие к текущей дате, то есть последняя action_date, которая <= текущая дата).
SELECT *, DiffDays (ACTION_DATE) AS D
FROM `table`
WHERE ACTION_DATE <= CURRENT_DATE
GROUP BY ITEM, LOCATION
ORDER BY D
/*LIMIT 10*/ /* Лимит кол-ва "ближайших" дат...если нужно, то раскомментировать...*/
select `Date`, source, Campaign, Ad, SUM(Click), SUM(Cost), SUM(`App Install`), SUM(Purchase)
from (
select `Date`, 'source A' as source, Campaign, Ad, Click, Cost, null as `App Install`, null as Purchase from table1
union
select date(`DateTime`), 'source B', Campaign, Ad, Click, Cost, null, null from table2
union
select `Date`, Source, Campaign, Ad, null, null, `App Install`, Purchase from table3
) t
group by `Date`, source, Campaign, Ad
sudo bash -c '>/путь/logfile.log'
sudo bash -c ">/путь/logfile.log"
sudo bash -c '>/путь/vidos.avi'