10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am newbie to unix scripting, need a help in the doubt i have. It is " when files are copied to a directory using cp command, they are arranged by default according to the file name, is there anyway where the files that are copied be arranged with respect to their size, with using the sort... (5 Replies)
Discussion started by: pundalik
5 Replies
2. Shell Programming and Scripting
Hi,
I am a newbie in shell scripting. I have to copy a particular sub-directory (data) from a large no. of directories (all in the same folder) and paste them to another directory ( /home/hubble/data ) and then rename all the subdirectories (data) as the name of its parent directory.
please... (8 Replies)
Discussion started by: sholay
8 Replies
3. Shell Programming and Scripting
Hi I have a few questions. I am trying to copy a file to a directory. I need to copy files that do not end in numbers, for example, into a directory. This is what I tried so far. cp filename directorytowhereIwannacopy but it says it can't copy to a directory. I need to copy many files into one... (2 Replies)
Discussion started by: #moveon
2 Replies
4. Shell Programming and Scripting
Could someone please tell me if there is a command similar to head or tail that can be used on directories. I want to select a given number of files from a directory and copy them into another directory. But I found out I can't use head as it doesn't (or I don't know how yet!) work on directories.... (4 Replies)
Discussion started by: Krush187
4 Replies
5. Shell Programming and Scripting
I am trying to write a script that first copies all the directories and files from the current directory into a new Directory. I get and error "Cannot copy directory into itself". That's fine. I don't want it to. What I am worried about is when I give this script to my company (they are using a... (2 Replies)
Discussion started by: Fred Goldman
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All
i want to write a script which could copy one file at a time from one directory to another directory.
Scenerio:
Let's say i have 100 file in a dirctory,so i want to copy one file at a time to another directory with a sleep statement in between that of 30 secs.
please help me... (1 Reply)
Discussion started by: Nikhilindurkar
1 Replies
7. UNIX for Dummies Questions & Answers
Hi UNIX Gurus,
Could please help me out regarding following situation.
I am copying some files from one directory to other directotry using following command.
cp /var/tmp/*date*.gz /var/tmp/user/
Problem:
Once the copy has completed, I need to check whether all the files (including... (3 Replies)
Discussion started by: satishkeshetty
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I need to copy a set of directories along with all sub directories and files from one unix box to another. Any ideas?
cnfsed (4 Replies)
Discussion started by: Cnfsed
4 Replies
9. UNIX for Dummies Questions & Answers
Hi
This is my first day in Unix, and I am trying to copy a file called
holiday.txt from my D drive into the C drive folder called h
like currently i am in D drive, i want to copy my holiday.txt into
C\h (C drive, h folder)
i am able to copy the file in the same drive, but how to do the... (5 Replies)
Discussion started by: soujanya_srk
5 Replies
10. UNIX for Dummies Questions & Answers
Hi, i'm completely new to Unix.
I'm trying to copy my "Pictures" folder, and all the folders under it, to a different folder "Photos".
So say "Pictures" has a sub folder "2".
what happens is "2" is copied to "Photos" like i want it to, but then a sub directory "tmp2" is made which... (3 Replies)
Discussion started by: brudnerx
3 Replies