Thursday, 24 November 2011

find and copy

find and copy

hey, trying to find files and copy to another folder, with 2 file extensions, dont know why its not working it is igoring the txt and just copying over doc, could someone take a wee look? -

find $HOME -name "*.txt" -o -name "*.doc" -exec cp {} $HOME/test \;

thank you

No comments:

Post a Comment