Search Results

Search: Posts Made By: alepi
32,135
Posted By alepi
If you want to capture ALL the output, not only...
If you want to capture ALL the output, not only errors, give the verbose command.
i.e.

ftp 123.123.123.123 <<EOF 2>&1 >/tmp/ftp.output
verbose
ascii
close
quit
EOF


bye.
35,248
Posted By alepi
Create a list and test if it is empty: ...
Create a list and test if it is empty:

list_file=`ls -1 *.pll 2>/dev/null`
if [ -z "$list_file" ]
then
echo "skipping compile as no matching files found"
exit 1
fi

for i in $list_file...
23,772
Posted By alepi
More simple...
I use this script for such task:

day=`date +%Y%m%d`
count=1
list_file=`ls -1 | grep PTWO`
for file in $list_file
do
mv $file COM${day}_${count}.txt
count=`echo $count + 1...
Showing results 1 to 3 of 3

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