I want to move a folder with spaces from one folder to another.
I have two folders like this,
1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/
I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch code,Source batch code,Destination branch code and Destination batch code.
EX:
###here the last line does not work properly,because here the space occupied there between $dbc and -$dbcd and same as $bc and -$bcd.
like that,
555 and -7777-01/ same as 222 and -4444
please solve this problem by using a user defined variable.
Last edited by Scrutinizer; 08-22-2014 at 08:55 AM..
Reason: code tags, change underline to icode tags
Hi,
I would like to write a shell script that moves files from one folder to another without retrieving the error 'can not find file or folder' when the folder is empty.
Any ideas,
Thx in advance,
Steven. (8 Replies)
Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Hello folk,
I want to move some *.jpg and *.JPG to some folder but i want move from current path not from subdirectories, wants to move 200 days old file.
it will go in /dir/aa/target/*.jpg|*.JPG but not go inside /dir/aa/target/other-directories,
Plese help (2 Replies)
There are around 13 files in folder1.I need to move these files to another folder folder2,one file at a time, after checking whether a file exists in another folder folder3.
If a file exists in folder3, we should not move files from folder1 to folder2.
If there are no files in folder3, we need... (1 Reply)
I want to move all the files inside a directory to another directory which is inside that directory. Please help.
Note: I want to move only the files. Note the folders. Thanks in advance. (4 Replies)
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this. (6 Replies)
Hi,
I want to move files like *.txt to another filesystem on the same server only when the disk usage reaches 80% or more. But need to keep the latest 5 files. After that delete from the original. How to proceed?
Please help
Gav... (5 Replies)
Hi All,
I have to requirement to write a shell script to move file from one folder (A) to another five folder (B,C,D,E,F) and destination folder should be blank. In not blank just skip.
This script will run as a scheduler every 2 minutes. It will check number of files in folder A and move 1 to... (9 Replies)
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
stg-branch
STG-BRANCH(1) StGit Manual STG-BRANCH(1)NAME
stg-branch - Branch operations: switch, list, create, rename, delete, ...
SYNOPSIS
stg branch
stg branch <branch>
stg branch --list
stg branch --create <new-branch> [<committish>]
stg branch --clone [<new-branch>]
stg branch --rename <old-name> <new-name>
stg branch --protect [<branch>]
stg branch --unprotect [<branch>]
stg branch --delete [--force] <branch>
stg branch --description=<description> [<branch>]
DESCRIPTION
Create, clone, switch between, rename, or delete development branches within a git repository.
stg branch
Display the name of the current branch.
stg branch <branch>
Switch to the given branch.
OPTIONS -l, --list
List each branch in the current repository, followed by its branch description (if any). The current branch is prefixed with >.
Branches that have been initialized for StGit (with linkstg:init[]) are prefixed with s. Protected branches are prefixed with p.
-c, --create
Create (and switch to) a new branch. The new branch is already initialized as an StGit patch stack, so you do not have to run
linkstg:init[] manually. If you give a committish argument, the new branch is based there; otherwise, it is based at the current HEAD.
StGit will try to detect the branch off of which the new branch is forked, as well as the remote repository from which that parent
branch is taken (if any), so that running linkstg:pull[] will automatically pull new commits from the correct branch. It will warn if
it cannot guess the parent branch (e.g. if you do not specify a branch name as committish).
--clone
Clone the current branch, under the name <new-branch> if specified, or using the current branch's name plus a timestamp.
The description of the new branch is set to tell it is a clone of the current branch. The parent information of the new branch is
copied from the current branch.
-r, --rename
Rename an existing branch.
-p, --protect
Prevent StGit from modifying a branch -- either the current one, or one named on the command line.
-u, --unprotect
Allow StGit to modify a branch -- either the current one, or one named on the command line. This undoes the effect of an earlier stg
branch --protect command.
--delete
Delete the named branch. If there are any patches left in the branch, StGit will refuse to delete it unless you give the --force flag.
A protected branch cannot be deleted; it must be unprotected first (see --unprotect above).
If you delete the current branch, you are switched to the "master" branch, if it exists.
-d DESCRIPTION, --description DESCRIPTION
Set the branch description.
--force
Force a delete when the series is not empty.
STGIT
Part of the StGit suite - see linkman:stg[1]
StGit 03/13/2012 STG-BRANCH(1)