01-16-2013
'-d'
'--no-dereference'
Copy symbolic links as symbolic links rather than copying the files that they point to, and preserve hard links between source files in the copies.
This User Gave Thanks to spacebar For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i cant do ftp to my unix server, basically i cant take my file out from unix server.
now i want to copy the content of that file on windows based appl ..say..notepad..
the number of lines is apprx 10000...
one way is to do
cat filename | more
then right clicking and pasting in the... (3 Replies)
Discussion started by: icecool1249
3 Replies
2. Programming
Hi,
This code was originally to print a sine function table. I modified it to print a tangent function table. I got an "lvalue" error which I can't solve...Any hint on why am I getting this error?
Here is the code:
// sintab.cpp
// Creates a tangent function table
#include <iostream>... (2 Replies)
Discussion started by: faizlo
2 Replies
3. UNIX for Dummies Questions & Answers
Hi guys,
I think this is a basic question. I'm not very familiar with this.
I'm trying to round a number up and round a number down. From what I have read this can be done using POSIX. I have tried to to use this, but i'm getting errors:
sub findGridBounds($$$%)
{
use POSIX;
... (0 Replies)
Discussion started by: WongSifu
0 Replies
4. Shell Programming and Scripting
Hi,
I was thinking that this should be a synch but I could never get it to work.
I want to copy a bunch of files within a directory (3/4 levels into the directory) to a common place. All these files have the same name, so I prefer to rename them with the path.
I tried with
files=`ls -1... (5 Replies)
Discussion started by: jamie_123
5 Replies
5. Shell Programming and Scripting
I want to get newvar outside the while
any ideas?
while read myline; do
var=${myline}
newvar1=$(let "$var")
done
echo $newvar1
I found it its ok now Thank you! (0 Replies)
Discussion started by: sanantonio7777
0 Replies
6. Shell Programming and Scripting
Hi,
First of all, thanks for all the awesome suggestions on this forum. This helps all the UNIX enthusiast like me.
Now, I had a similar requirement as mentioned in a very old post here:
Question about Perderabo's "Days Elapsed Between Two Dates"
But I am struggling what to change in the... (5 Replies)
Discussion started by: CleoBos
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have the following folder structure:
Folder6100/Data
Folder6100/Data
Folder6120/Data
Folder6120/Data
Folder6140/Data
Folder6140/Data
Folder6160/Data
Folder6160/Data
Folder6180/Data
Folder6180/Data
Folder6200/Data
Folder6220/Data
Folder6240/Data
Folder6260/Data... (2 Replies)
Discussion started by: alex2005
2 Replies
8. Shell Programming and Scripting
I facing a problem :
I have a Source and Destination directory. The Source directory is linked to SVN and is updated by the Script to Head Revision.
After that i copy the Source to Destination by this command:
cp -r /SOURCE PATH /DESTIUNATION PATH
Now if a delete a file in source and... (5 Replies)
Discussion started by: ankur328
5 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I need a shell script to compress and transfer only last modified(new) file from one linux server to another linux sever.
the files i need to backup are 2 files .txt & .log which will be created in the same folder for every 3-4hrs and this script need to run once in 24hrs.
so only... (5 Replies)
Discussion started by: basszzz
5 Replies
10. Solaris
Dear,
One of our customer which is located in Iraq/Baghdad, has informed us about a official change in daylight saving time in few days later and has asked us to fix this issue.
So, the current timezone of that system is set as 'Asia/Baghdad' which is correct. however to fix the issue I went... (0 Replies)
Discussion started by: Anti_Evil
0 Replies
CPIO(1L) CPIO(1L)
NAME
cpio - copy files to and from archives
SYNOPSIS
cpio {-o|--create} [-0acvABLV] [-C bytes] [-H format] [-M message] [-O [[user@]host:]archive] [-F [[user@]host:]archive]
[--file=[[user@]host:]archive] [--format=format] [--message=message] [--null] [--reset-access-time] [--verbose] [--dot] [--append]
[--block-size=blocks] [--dereference] [--io-size=bytes] [--quiet] [--force-local] [--rsh-command=command] [--help] [--version] < name-list
[> archive]
cpio {-i|--extract} [-bcdfmnrtsuvBSV] [-C bytes] [-E file] [-H format] [-M message] [-R [user][:.][group]] [-I [[user@]host:]archive] [-F
[[user@]host:]archive] [--file=[[user@]host:]archive] [--make-directories] [--nonmatching] [--preserve-modification-time] [--numeric-uid-
gid] [--rename] [-t|--list] [--swap-bytes] [--swap] [--dot] [--unconditional] [--verbose] [--block-size=blocks] [--swap-halfwords] [--io-
size=bytes] [--pattern-file=file] [--format=format] [--owner=[user][:.][group]] [--no-preserve-owner] [--message=message] [--force-local]
[--no-absolute-filenames] [--sparse] [--only-verify-crc] [--to-stdout] [--quiet] [--rsh-command=command] [--help] [--version] [pattern...]
[< archive]
cpio {-p|--pass-through} [-0adlmuvLV] [-R [user][:.][group]] [--null] [--reset-access-time] [--make-directories] [--link] [--quiet] [--pre-
serve-modification-time] [--unconditional] [--verbose] [--dot] [--dereference] [--owner=[user][:.][group]] [--no-preserve-owner] [--sparse]
[--help] [--version] destination-directory < name-list
DESCRIPTION
GNU cpio is fully documented in the texinfo documentation. To access the help from your command line, type
info cpio
The online copy of the documentation is available at the following address:
http://www.gnu.org/software/cpio/manual
CPIO(1L)