The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
bash script quesiton - if any file exists then ...
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
bash script quesiton - if any file exists then ...
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-10-2009
arunsoman80
Registered User
Join Date: Jul 2008
Location: New York
Posts: 45
Try this, not the ideal way to do this but does server the purpose:
Quote:
if [[ `ls /source/* | wc -l` -gt 0 ]]; then
mv /source/* /target
fi
arunsoman80
View Public Profile
Find all posts by arunsoman80
Find arunsoman80's past nominations received
Find arunsoman80's present nominations given