Sponsored Content
Full Discussion: mv hidden folders
Top Forums Shell Programming and Scripting mv hidden folders Post 302370703 by redhead on Thursday 12th of November 2009 07:39:49 AM
Old 11-12-2009
if you're looking how to get something moved which holds a . and more than one extra character use the ? to indicate it ie:
Code:
mv /network/ftp-backup/svnbackup/Today/.??* /network/ftp-backup/svnbackup/Yesterday

This way it will take ".[a-z|0-9|etc][a-z|0-9|etc]" avoiding the dreaded '..'
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Backing up Folders without some folders...;)

I am in a fix....... I have to write a backup script to backup say Folder A. Folder A contains n folders 1,2 ,3 .....n. my script should copy A without folder 2 & 3. Is there anyway I can do it without writing individual copy commands???? Please help.... (1 Reply)
Discussion started by: chimpu
1 Replies

2. UNIX for Dummies Questions & Answers

Copying Folders without some folders... ;-)

I am in a fix....... I have to write a backup script to backup say Folder A. Folder A contains n folders 1,2 ,3 .....n. my script should copy A without folder 2 & 3. Is there anyway I can do it without writing individual copy commands???? Please help.... (5 Replies)
Discussion started by: chimpu
5 Replies

3. Shell Programming and Scripting

Finding Hidden files and protecting the folder containing hidden files from deletion

Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is: find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \; But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Discussion started by: pochaw
4 Replies

4. Shell Programming and Scripting

Making 99 folders 99 folders deep

I am trying to make a unix shell script that will make 99 folders 99 deep (counting the first level folders). So far i have made it make the first 99 folders and 99 more in all of the folders. The only problem is the only way i have found is copying and pasting part of the script over and over and... (18 Replies)
Discussion started by: YukonAppleGeek
18 Replies

5. UNIX for Dummies Questions & Answers

Searching for folders/parent folders not files.

Hello again, A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x. I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
Discussion started by: Aussiemick
2 Replies

6. UNIX for Dummies Questions & Answers

List all directories hidden or not hidden

I want to list all directories hidden or not hidden. ls -ld */ => shows only not hidden directories so i guess the answer would be to add the a option to show all files ls -lad */ => not working :confused: ls -la | grep "^d" => works But I would like to know why I can't use ls -lad... (4 Replies)
Discussion started by: servus
4 Replies

7. Shell Programming and Scripting

Copy between two different folders containing same sub-folders

I have a folder like this ls input1 dir1 dir2 dir3 file1 file2 file3 dir1, dir2 and dir3 are sub-folders inside the folder input1 ls input2 dir1 dir2 dir3 file1 file2 file3 My dir1 in input1 folder has files f1, f2, f3 and f4. My dir1 in input2 folder has file f4 and f5. ... (3 Replies)
Discussion started by: jacobs.smith
3 Replies

8. Shell Programming and Scripting

Count hidden folders

I am newbies and struggling with this tasks. How to calculate only visible or hidden folders and files in a dictionary? ( i did something like this but it show both visible and hidden files at the same time: ls -l | grep ^- | wc -l ) how to use parse the output of an ls in order to find the... (3 Replies)
Discussion started by: vietanhxienbot
3 Replies

9. Shell Programming and Scripting

Rsync - how to copy hidden folder or hidden files when using full path

Hello. I use this command : rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command. And no full source directories are in use, only some files. Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
bup(1)							      General Commands Manual							    bup(1)

NAME
bup - Backup program using rolling checksums and git file formats SYNOPSIS
bup [global options...] <command> [options...] DESCRIPTION
bup is a program for making backups of your files using the git file format. Unlike git(1) itself, bup is optimized for handling huge data sets including individual very large files (such a virtual machine images). However, once a backup set is created, it can still be accessed using git tools. The individual bup subcommands appear in their own man pages. GLOBAL OPTIONS
--version print bup's version number. Equivalent to bup-version(1) -d, --bup-dir=BUP_DIR use the given BUP_DIR parameter as the bup repository location, instead of reading it from the $BUP_DIR environment variable or using the default ~/.bup location. COMMONLY USED SUBCOMMANDS
bup-fsck(1) Check backup sets for damage and add redundancy information bup-ftp(1) Browse backup sets using an ftp-like client bup-fuse(1) Mount your backup sets as a filesystem bup-help(1) Print detailed help for the given command bup-index(1) Create or display the index of files to back up bup-on(1) Backup a remote machine to the local one bup-restore(1) Extract files from a backup set bup-save(1) Save files into a backup set (note: run "bup index" first) bup-web(1) Launch a web server to examine backup sets RARELY USED SUBCOMMANDS
bup-damage(1) Deliberately destroy data bup-drecurse(1) Recursively list files in your filesystem bup-init(1) Initialize a bup repository bup-join(1) Retrieve a file backed up using bup-split(1) bup-ls(1) Browse the files in your backup sets bup-margin(1) Determine how close your bup repository is to armageddon bup-memtest(1) Test bup memory usage statistics bup-midx(1) Index objects to speed up future backups bup-newliner(1) Make sure progress messages don't overlap with output bup-random(1) Generate a stream of random output bup-server(1) The server side of the bup client-server relationship bup-split(1) Split a single file into its own backup set bup-tick(1) Wait for up to one second. bup-version(1) Report the version number of your copy of bup. SEE ALSO
git(1) and the README file from the bup distribution. The home of bup is at <http://github.com/apenwarr/bup/>. AUTHORS
Avery Pennarun <apenwarr@gmail.com>. Bup unknown- bup(1)
All times are GMT -4. The time now is 11:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy