08-20-2012
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a script that can only handLE limited number of input files.
I need to be able to write a command (or a script) that:
1> copies N number of files from one directory (A) to another (B).
2> Files that are moved need to be renamed.
3> Files picked to be moved have... (1 Reply)
Discussion started by: GMMike
1 Replies
2. Shell Programming and Scripting
Hi ,
I want to copy files from one dir to anothe dir and check if destination dir exists ,if not exist ,has to create but when executing the below schell script ,the destination directory not exist and exit the shell script.
#!/bin/sh
src_path=/home/owngdw/abc
tgt_path=/home/owngdw/abc/xyz
if... (6 Replies)
Discussion started by: mohan705
6 Replies
3. UNIX for Dummies Questions & Answers
I have few webservers logs like access.log. which would be growing everyday.
what i do everyday is, take the backup of access.log as access.log_(currentdate) and nullify the access.log.
So thought of writing a script... but stuck up in middle.
My requirement: to take the backup and nullify... (6 Replies)
Discussion started by: logic0
6 Replies
4. Shell Programming and Scripting
Hello,
fjalkdsjfkldsajflkajdskl (3 Replies)
Discussion started by: pmeesara
3 Replies
5. Shell Programming and Scripting
I need to create a dir in my script with its name as current date in the server.
how can i do that please help. (2 Replies)
Discussion started by: abhishek27
2 Replies
6. UNIX and Linux Applications
HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file!
I tried all these commands
cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies
7. Shell Programming and Scripting
Hello Comunity
I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside.
it called : cpflatdir src_dir dest_dir
Pleaze help me!
Thank you in... (2 Replies)
Discussion started by: BTKBaaMMM
2 Replies
8. Shell Programming and Scripting
Hi,
I have a directory which is having many files. I want to copy 10files at a time to another directory.
For example.
First 10 files to one directory, then next 10 files to another directory and so on.
Please let me know if any work around there for it.
Thanks (4 Replies)
Discussion started by: Anjan1
4 Replies
9. Shell Programming and Scripting
Hi all,
I'd very grateful for some help with the following:
I have a directory with several subdirectories with files in them. All files are named different, even between different subdirectories. I also have a list with some of those file names in a txt file (without the path, just the file... (5 Replies)
Discussion started by: foracoffee
5 Replies
10. Shell Programming and Scripting
Hi
i want to copy all the files of current date in another directory.
for example, below i want to save all the file of 26 march to copied in debug dir.
$ ls -lrt | tail -5
-rwxrwxrwx 1 khare guest 73 Jan 6 12:35 chk
-rw-r--r-- 1 khare guest 770 Mar 26 02:21 cc1... (2 Replies)
Discussion started by: scriptor
2 Replies
LEARN ABOUT DEBIAN
socialtext::resting::localcopy
Socialtext::Resting::LocalCopy(3pm) User Contributed Perl Documentation Socialtext::Resting::LocalCopy(3pm)
NAME
Socialtext::Resting::LocalCopy - Maintain a copy on disk of a workspace
SYNOPSIS
Socialtext::Resting::LocalCopy allows one to copy a workspace into files on the local disk, and to update a workspace from files on disk.
METHODS
new
Create a new LocalCopy object. Requires a "rester" parameter, which should be a Socialtext::Rester-like object.
pull
Reads a workspace and pulls all of the pages into files in the specified directory. Options are passed in as a list of named options:
dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pulled.
push
Reads a directory and pushes all the files in that directory up to the specified workspace. Options are passed in as a list of named
options:
dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pushed.
Note - tag is not yet implemented.
BUGS
Attachments are not yet supported. Push by tag is not yet supported.
AUTHOR
Luke Closs, "<luke.closs at socialtext.com>"
COPYRIGHT & LICENSE
Copyright 2007 Luke Closs, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-01-09 Socialtext::Resting::LocalCopy(3pm)