View Single Post
  #3   (View Single Post)  
Old 26th April 2010
Simon Simon is offline
Port Guard
 
Join Date: Jan 2010
Posts: 30
Default

I tried this script verifynas:
When i launch : sh verifynas Apr 22, it works fine.
But if i launch it with: sh verifynas Apr 6, it doesn't work, problem with spaces
Is it possible to do a "ls" sort by date and keep only the 4 lasts lines ?
Or correct my script to it works ??

#!/bin/sh
clear &&
ftp -n ip_server << END | grep $1" "$2
cd backup_folder
ls
quit
END
Reply With Quote