Search Results

Search: Posts Made By: asnatlas
9,867
Posted By Chubler_XL
scp seems to require a complete path for the...
scp seems to require a complete path for the destination file try:

scp $server:$filepath ./$server${filepath//\//_}
9,867
Posted By Chubler_XL
This solution uses sed to prepend the server name...
This solution uses sed to prepend the server name to filelist and scp to copy the files locally. Most servers that support ssh also support scp so it should work for you.

#!/bin/bash

for...
57,837
Posted By ./hari.sh
remove 0 byte
Alternatively

find /home/hari -type f -size 0 -exec rm {} \;
57,837
Posted By porter
To find zero length files use find . -type f...
To find zero length files use

find . -type f -size 0

so test with

find . -type f -size 0 | xargs ls -ld

if happy remove with

find . -type f -size 0 | xargs rm
Showing results 1 to 4 of 4

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