Sponsored Content
Top Forums Shell Programming and Scripting Move specific folders and subfolders in a directory Post 302979981 by cmccabe on Monday 22nd of August 2016 03:30:42 PM
Old 08-22-2016
Move specific folders and subfolders in a directory

I am trying to move specific folders and subfolders within a directory using the below. I can see the folders to move and they are at the location, but I am getting an error. Thank you Smilie.

Code:
mv -v /home/cmccabe/Desktop/NGS/API/6-10-2016{bam/{validation,coverage},bedtools /media/cmccabe/"My Book Western Digital"
mv: cannot stat ‘/home/cmccabe/Desktop/NGS/API/6-10-2016{bam/validation,bedtools': No such file or directory

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to create folders/subfolders using shellscript

Hi, Can any one help me how to create folders using shellscript.My requirement is: FolderName: Main/Main1 :Main/Main2 :Main/Main3 underSubFolder : Main1/A :Main1/B :Main1/C underSubfolder: A/A1 ... (2 Replies)
Discussion started by: ram2s2001
2 Replies

2. Shell Programming and Scripting

Script to Analyze folders and subfolders

I would like to know if there is a script out there that someone may have already written that I can use to analyze folders and sub folders on my AIX system. It can be in perl or a basic korn script. Thanks in advance. (7 Replies)
Discussion started by: seacros
7 Replies

3. UNIX for Advanced & Expert Users

Watch directory and move specific file extensions

Hi all, This is actually more for my lazyness then anything else, but I think others might find it useful to use as well. Basically this is what I am trying to achieve... In my ubuntu home dir under Downloads is where firefox saves everything by default, now I know that you can manually... (3 Replies)
Discussion started by: STOIE
3 Replies

4. Shell Programming and Scripting

Help to move folders, subfolders and files from unix to windows

Hi Unix Gurus, I am able to copy only files that exist in the parent folder. My parent folder has sub folders and within sub folders there are lots files. I need to copy folder, sub folders and files from Unix to the remote windows SFTP location. The directory structure is something like... (1 Reply)
Discussion started by: shankar1dada
1 Replies

5. Shell Programming and Scripting

Creating matrix from folders and subfolders

Hello, Greetings! please help me produce the following solution. I need to produce one big matrix file from several files in different levels. If it helps, the index folder provides information on chromosome index and the data folder provides information on values for chromosomes. there... (8 Replies)
Discussion started by: newbie83
8 Replies

6. Shell Programming and Scripting

How to delete all the files and folders inside all the directories except some specific directory?

hi, i have a requirement to delete all the files from all the directories except some specific directories like archive and log. for example: there are following directories such as A B C D Archive E Log F which contains some sub directories and files. The requirement is to delete all the... (7 Replies)
Discussion started by: Little
7 Replies

7. Shell Programming and Scripting

Rsync to copy specific subfolders and files to new directory

RootFolderI: RootFolderI/FolderA/Subfolder1/Subsub1/JPG1.jpg -> want this jpg RootFolderI/FolderA/Subfolder2/Subsub1/JPG2.jpg -> want this jpg RootFolderI/FolderA/Subfolder2/Subsub2/JPG3.jpg . . . RootFolderI/FolderB/Subfolder1/Subsub1/JPG4.jpg -> want this jpg ... (1 Reply)
Discussion started by: blocnt
1 Replies

8. Shell Programming and Scripting

Bash to move specific files from folders in find file

I have a directory /home/cmccabe/nfs/exportedReports that contains multiple folders in it. The find writes the name of each folder to out.txt. A new directory is then created in a new location /home/cmccabe/Desktop/NGS/API, named with the date. What I am trying to do, unsuccessfully at the moment,... (7 Replies)
Discussion started by: cmccabe
7 Replies

9. Shell Programming and Scripting

Bash to list all folders in a specific directory

The below bash is trying to list the folders in a specific directory. It seems close but adds the path to the filename, which basename could strip off I think, but not sure why it writes the text file created? This list of folders in the directory will be used later, but needs to only be the... (5 Replies)
Discussion started by: cmccabe
5 Replies

10. Shell Programming and Scripting

Bash directory loop, but only choose those folders with specific word in it

Hello, how in bash i can get directory loop, but only choose those folders with specific word in it, so it will only echo those with specific word #!/bin/bash for filename in /home/test/* do if ; then echo $filename; fithx! (4 Replies)
Discussion started by: ZerO13
4 Replies
nautilus(1)							   User Commands						       nautilus(1)

NAME
nautilus - the GNOME File Manager SYNOPSIS
nautilus [--check] [--geometry=geometry] [--no-default-window] [--no-desktop] [--quit] [location] [gnome-std-options] DESCRIPTION
The GNOME File Manager is the primary graphical interface to the file system. It provides access to, and manipulation of, files and folders on both local and remote filesystems by giving a virtual view of them. The File Manager supports multiple view types to allow you to view files and folders as an arrangement of icons, as a detailed list, or as a number of data-specific views which allow embedded viewing of text, images and other multi-media. Nautilus provides the desktop backdrop and its associated icons for launching applications, access to folders, the trash and removeable media (such as CD-ROMs and zip disks). The trash container is a special view of objects that have been removed from their original loca- tions but not yet permanently deleted from the system. Emptying the trash will delete these objects permanently. The side pane of the main window provides additional information about the folder in the current view as well as allowing the user to add any arbitrary notes; for example, to describe the folder or its contents. A tree view of the filesystem is also available on the side bar, which can be used to switch between the location of the main view and a history view to show the recently viewed locations. OPTIONS
The following options are supported: ---check Perform a quick set of self-check tests. ---geometry=geomCreate inital window with given geometry, where geometry is in the following format: widthxheight. ---no-default-wiOnly create windows for explicitly specified locations. ---no-desktop Do not manage the desktop backdrop. ---quit Quit a currently running Nautilus application. gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information. OPERANDS
The following operands are supported: location The location to be viewed. This location may be specified as a filesystem directory (for example, /home/guest/Documents), or by using any of the URI schemes supported by Nautilus (for example, http://www.sun.com or ftp://ftp.gnome.org). EXAMPLES
Example 1: Launching Nautilus to view a specific location example% nautilus /home/guest/Images Example 2: Opening a Nautilus window with a specified width and height and without managing the desktop background example% nautilus --geometry=450x300 --no-desktop EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/nautilus The command-line executable for the GNOME file manager. ~/.nautilus/* The location of user-specific meta-data, including notes, emblems, and background patterns. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-file-mgr | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
libgnomevfs-2(3), gnome-std-options(5) Latest version of the GNOME Desktop User Guide for your platform. NOTES
Written by Stephen Browne, Sun Microsystems Inc., 2003. SunOS 5.10 2 Oct 2003 nautilus(1)
All times are GMT -4. The time now is 04:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy