08-23-2017
Can you show us:-
- The output from uname -a in CODE tags (highlight the output and click the tool/button with co over de)
- The output from ps -f to show which shell you are using
- What you have tried
- What errors you get
Can I assume that the directories should all be fully qualified? (with a leading
/) What you have shown is one fully qualified and two from the current directory, wherever your shell might be.
Robin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a folder which contain the log files. The folder may contain sub folders as well. I want to move the contents of the log folder to tmp folder periodically. I have used the command.
LOG_DIR=/logs
DESTINATION_DIR=/tmp/logs
find ${LOG_DIR} -mtime +1 -exec mv {}... (10 Replies)
Discussion started by: farooqpervaiz
10 Replies
2. Shell Programming and Scripting
Hi All
I need a shell script for move the 1 year old files from one folder to another folder with date and time.
How to write a shell script for the same pls hepl me out.
thanx in advance
Thanx
Lalit (2 Replies)
Discussion started by: lalitkumar
2 Replies
3. Shell Programming and Scripting
Hi
I need to move last 1 year old files from one folder to another location on same server.How to write a shell script for the same?
thanx
Lalit (8 Replies)
Discussion started by: lalitkumar
8 Replies
4. UNIX for Advanced & Expert Users
Hi,
I need to move 1000s of files from one folder to another.
Actually there are 100K+ files.
Source dir : source1
Target dir : target1
Now if try cp or mv commands I am getting an error message : Argument List too long.
I tried to do it by the time the files are created in the... (1 Reply)
Discussion started by: unx100
1 Replies
5. Shell Programming and Scripting
Hi,
I need to use rsync to delete multiple files(only specified files not all) using --delete option, these files are located in different target folders.
Instead of running rsync command multiple times for each file, can we achieve this with one time execution?
your help is much... (0 Replies)
Discussion started by: MVEERA
0 Replies
6. UNIX for Dummies Questions & Answers
hello there- first post here- maybe someone can help-
Basically I am trying to copy the contents of a folder to a different folder that has a variable name.
the content I want to copy would be in a folder on my desktop called: myfolder
the variable folder would look something like: ... (3 Replies)
Discussion started by: infothelonghaul
3 Replies
7. Ubuntu
There are files stored like 14.Aug.2014.log, 15.Aug.2014.log etc. in a folder $HOME/logyou need to find out all the log files of last 1 month and move them into $HOME/logs/lastmonth/
this should be implemented with reference of file name.
---------- Post updated at 12:30 PM ----------... (3 Replies)
Discussion started by: shajoftaj
3 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
There are files stored like 14.Aug.2014.log, 15.Aug.2014.log etc. in a folder $HOME/log you need to find out all... (4 Replies)
Discussion started by: shajoftaj
4 Replies
9. Shell Programming and Scripting
Hi All,
I am a beginner in this and trying to write a shell script in linux which will :
1. Ask for a file name and check if its exists.
2. If file exists only then it will ask for the new target folder, after entering target folder name it will check if it exists.
3. If target folder... (3 Replies)
Discussion started by: ashish_neekhra
3 Replies
10. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
LEARN ABOUT DEBIAN
bup-ls
bup-ls(1) General Commands Manual bup-ls(1)
NAME
bup-ls - list the contents of a bup repository
SYNOPSIS
bup ls [-s] [-a]
DESCRIPTION
bup ls lists files and directories in your bup repository using the same directory hierarchy as they would have with bup-fuse(1).
The top level directory contains the branch (corresponding to the -n option in bup save), the next level is the date of the backup, and
subsequent levels correspond to files in the backup.
When bup ls is asked to output on a tty, it formats its output in columns so that it can list as much as possible in as few lines as possi-
ble. However, when bup ls is asked to output to something other than a tty (say you pipe the output to another command, or you redirect it
to a file), it will output one file name per line. This makes the listing easier to parse with external tools.
Note that bup ls doesn't show hidden files by default and one needs to use the -a option to show them. Files are hidden when their name
begins with a dot. For example, on the topmost level, the special directories named .commit and .tag are hidden directories.
Once you have identified the file you want using bup ls, you can view its contents using bup join or git show.
OPTIONS
-s, --hash
show hash for each file/directory.
-a, --all
show hidden files.
EXAMPLE
bup ls /myserver/latest/etc/profile
bup ls -a /
SEE ALSO
bup-join(1), bup-fuse(1), bup-ftp(1), bup-save(1), git-show(1)
BUP
Part of the bup(1) suite.
AUTHORS
Avery Pennarun <apenwarr@gmail.com>.
Bup unknown- bup-ls(1)