That is a useless use of cat and useless use of backticks, inherently dangerous because any file too long for a shell variable to hold will have some of its contents silently lost. It's also very inefficient. There's a much better way to do this, which doesn't attempt to store the entire file in memory at once, and uses pure shell built-ins:
Last edited by Corona688; 07-09-2011 at 05:52 PM..
I need to copy about 13 Tb of data from one directory and subdirectories to the other (another mount point). If I run this as a cron, say between 10 pm and 7 am, not all of the files will be copied over. Is there a way of 'resuming' the copy the following evenings until all files are copied over? (0 Replies)
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
Dear All,
Again I have another simple question. :confused:
I want to write a csh which can copy all files of a current directory with a new name in the same directory, I mean:
If I have tree bird apple as files in a directory I want to give ,say number 007 as argument to my csh and it copies... (3 Replies)
I have a folder will a lot of documents (pdf, xls, doc etc.) which users have uploaded but only 20% of them are currently linking from my html files. So my goal is to copy only the files which are linked in my html files from my Document directory into another directory.
Eg: My documents exist... (5 Replies)
Hello,
I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work.
The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Hi
I have 3 directories
indexes_with_ts
indexes_without_ts
process_indexes
in each directories it contains *.sql
how do I accomplish this:
for all the files found in indexes_without_ts, copy the corresponding file in indexes_with_ts to process_indexes.
i.e.
for... (2 Replies)
Discussion started by: jediwannabe
2 Replies
LEARN ABOUT SUSE
pilot-wav
pilot-wav(1) PILOT-LINK pilot-wav(1)NAME
pilot-wav - Decodes Palm Voice Memo files to wav files you can read on your desktop
SECTION
pilot-link: Userland conduits
SYNOPSIS
pilot-wav [-p|--port <port>] [--version] [-?|--help] [-q|--quiet] [--usage] [-f|--fetch [file|all]] [-c|--convert file]
OPTIONS
pilot-wav options
-f, --fetch
[file|all]
Fetch all wav files or specified wav file from the Palm.
-c, --convert
file.wav.pdb
Convert file.wav.pdb file to wav
Conduit Options
-p, --port
port
Use device file port to communicate with the Palm handheld. If this is not specified, pilot-wav will look for the $PILOTPORT environment
variable. If neither are found or supplied, pilot-wav will print the usage information.
-q, --quiet
Suppress 'Hit HotSync button' message
-v, --version
Display version of pilot-wav.
Help Options
-h, --help
Display the help synopsis for pilot-wav.
--usage
Display a brief usage message and exit without connecting.
EXAMPLES
# Fetch all of the voice memo files from your Palm and save them to .wav files on your desktop machine
pilot-wav -p /dev/pilot -f
MyVoiceMemo.wav.pdb
# Convert all voice memos found in MyVoiceMemo to .wav files on your desktop machine
pilot-wav -c MyVoiceMemo.wav.pdb
AUTHOR
This manual page was written by Neil Williams <linux@codehelp.co.uk>
REPORTING BUGS
We have an online bug tracker. Using this is the only way to ensure that your bugs are recorded and that we can track them until they are
resolved or closed. Reporting bugs via email, while easy, is not very useful in terms of accountability. Please point your browser to
http://bugs.pilot-link.org: http://bugs.pilot-link.org and report your bugs and issues there.
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
SEE ALSO pilot-link(7)0.12.5 Copyright 1996-2007 FSF pilot-wav(1)