![]() |
2008-03-12
, 07:58
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
![]() |
2008-03-12
, 08:49
|
Posts: 422 |
Thanked: 244 times |
Joined on Feb 2008
|
#3
|
![]() |
2008-03-12
, 09:48
|
Posts: 13 |
Thanked: 5 times |
Joined on Feb 2006
@ Oregon
|
#4
|
![]() |
2008-03-12
, 09:54
|
Posts: 157 |
Thanked: 96 times |
Joined on Nov 2007
@ Oxford, UK
|
#5
|
What aspect of cpio do you need? The ability to swap cards when full?
If you just need to pass the filenames, you could use xargs and cp
find . -name "*.JPG" -print0 | xargs -0 -i cp {} /media/mmc2/images
Hmm... does the n810 have xargs?
find -name "*.JPG" | while read foo; do cp $foo /media/mmc2/images; done
![]() |
2008-03-12
, 10:38
|
Posts: 225 |
Thanked: 68 times |
Joined on Feb 2006
|
#6
|
![]() |
2008-03-12
, 11:56
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#7
|
The Following User Says Thank You to pipeline For This Useful Post: | ||
![]() |
2008-03-12
, 12:36
|
Posts: 225 |
Thanked: 68 times |
Joined on Feb 2006
|
#8
|
![]() |
2008-03-12
, 12:40
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#9
|
I am trying to write a simple file copy command in xterm [find /./media/usb/sda1/dcim -name '*.JPG' | cpio -p /./media/mmc2/images]
find /media/usb/sda1/dcim -name "*.JPG" -exec cp -p {} /media/mmc2/images/. \;
cd media/usb/sda1/dcim (or into whatever subdir holds the actual ".JPG" files) tar cf - *.JPG | (cd /media/mmc2/images && tar xvf -)
![]() |
2008-03-12
, 13:56
|
Posts: 157 |
Thanked: 96 times |
Joined on Nov 2007
@ Oxford, UK
|
#10
|
What with simply:
Code:find /media/usb/sda1/dcim -name "*.JPG" -exec cp -p {} /media/mmc2/images/. \;
I have a need to copy specific file types in multiple directories on my camera's CF memory card to a specific directory on my IT's SD memory card. The tablet is set to host mode and I can read all of the media devices correctly. I can list all of the files at /./media/usb/sda1/dcim and at /./media/mmc2/images to see what is in each directory. The "find" command works to list (print) the files that I need from the multiple directories on the CF memory card. I am just getting hung up with the lack of "cpio" in the command set.
Anyone have an idea on how to get the command "cpio" working on my N800 with the latest OS2008? If not, can someone suggest another way to copy the files from multiple directories on the CF memory card to one directory on the SD memory card in the tablet? Preferably without writing an entire shell script and without having to manually select files using File Manager!
Many thanks for your help.
Steve