#!/bin/bash
outputpath="./jitter"
if [ ! -d "$outputpath" ]; then
mkdir "$outputpath"
fi
filelist=`ls`
#注意是`
for filename in $filelist
do
echo "$filename"
if [ -f "$filename" ]; then
echo "come in"
newname=$filename.tm
dcat "$filename" | perl ../gettime.pl > $outputpath/$newname
#使用管道技术,调用了PERL
echo "$newname creat"
fi
done #不要忘了
outputpath="./jitter"
if [ ! -d "$outputpath" ]; then
mkdir "$outputpath"
fi
filelist=`ls`
#注意是`
for filename in $filelist
do
echo "$filename"
if [ -f "$filename" ]; then
echo "come in"
newname=$filename.tm
dcat "$filename" | perl ../gettime.pl > $outputpath/$newname
#使用管道技术,调用了PERL
echo "$newname creat"
fi
done #不要忘了