#!/bin/bash
#
# SCRIPT: feed.sh
# AUTHOR: Alexey Fedorov R&D Center "Vulkan"
# DATE: 25 March 2016
# REV: 1
#
# Root tier folder where located reports in CSV format
SRC_DIR="/opt/feed"

# The search newest CSV file
find ${SRC_DIR}/* -type f -name "*.csv" -mtime 0 -exec mv '{}' /var/netwitness/srv/www/feed/osfeed.csv \;

# Delete source folders 
rm -fr ${SRC_DIR}/20* 
