Sponsored Content
Top Forums Shell Programming and Scripting Moving Files from one folder to another folder Post 302222461 by Annihilannic on Wednesday 6th of August 2008 11:46:49 PM
Old 08-07-2008
The sed s command is just like in vi. s/water/wine/ would search-and-replace water with wine.

Strings between 'single quotes' are not evaluated for variables. If you use "double quotes" instead it should work:

Code:
dest=$(dirname "$file" | sed "s/${SRC_DIR}/Logs/")

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script for moving files from one folder to other

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

2. Shell Programming and Scripting

Script for moving files from one folder to other

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

3. UNIX for Advanced & Expert Users

Moving 1000s of files to another folder

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

4. Shell Programming and Scripting

using mv command for moving multiple files in a folder

Hi, I have a requirement where I need to move Bunch of folders containing multiple files to another archive location. i want to use mv command .I am thinking when we use mv command to move directory does it create directory 1st and then move all the files ? e.g source... (4 Replies)
Discussion started by: rkmbcbs
4 Replies

5. Shell Programming and Scripting

moving files from one folder to many folders

I have a more than 10 K files in a folder. They are accumulated in a period of more than an year (Say from 13th July 2010 to 4th June 2011). I need to perform housekeeping on this. The requirement is to create a folder like 13Jul2010,14July2010,......3June2011,4June2010 and then from the main... (2 Replies)
Discussion started by: realspirituals
2 Replies

6. Shell Programming and Scripting

Need help to write a script for moving the log files to some other folder

Hi Experts, I want to write a script, based upon the following requirement 1) I am having 5 application $ cd logs $ ls -l drwxr-xr-x 2 natraj nat 5.0K Sep 20 10:25 one drwxr-xr-x 2 natraj nat 5.0K Sep 20 10:39 two drwxr-xr-x 2 natraj nat 1.5K Sep 20 10:58... (4 Replies)
Discussion started by: natraj005
4 Replies

7. Shell Programming and Scripting

Finding files with wc -l results = 1 then moving the files to another folder

Hi guys can you please help me with a script to find files with one row/1 line of content then move the file to another directory my script below runs but nothing happens to the files....Alternatively Ca I get a script to find the *.csv files with "wc -1" results = 1 then create a list of those... (5 Replies)
Discussion started by: Dj Moi
5 Replies

8. UNIX for Dummies Questions & Answers

Moving files to a folder with a variable name

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

9. Shell Programming and Scripting

Moving files and folders to another folder

I recently bought Synology server and realised it can run scripts. I would need fairly simple script which moves all files and folders from ARCHIVE folder to WORKING folder. I would also need to maintain folder structure as each of the folders may contain subfolders. How would I go about it as I am... (1 Reply)
Discussion started by: ###
1 Replies

10. Shell Programming and Scripting

Shell scripting for moving folder specific files into target directory of that country folder.

I need help to write shell script to copy files from one server to another server. Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
q4wine(1)							   Q4Wine Manual							 q4wine(1)

NAME
q4wine - runs GUI utility for wine applications and prefixes management. SYNOPSIS
q4wine [KEY] ... DESCRIPTION
Q4Wine is a Qt4 http://www.qtsoftware.com/ GUI for W.I.N.E. http://winehq.org/ It will help you manage wine prefixes and installed appli- cations. General features: - Can export Qt color theme into wine colors settings. - Can easy work with different wine versions at same time; - Integrated Wine AppDB browser; - Easy creating, deleting and managing prefixes (WINEPREFIX); - Easy controlling for wine process; - Easy installer wizard for wine applications; (Not yet. Wait for v. 0.120) - autostart icons support; - Easy cd-image use; - FuseISOEmbedded FuseISO mount profiles; - You can extract icons from PE files (.exe .dll); - Easy backup and restore for managed prefixes. - Winetricks support. - and more... OPTIONS
A summary of options is included below. -m, --minimize minimize q4wine main window on startup -h, --help display help and exit -v, --version output version information and exit -b, --binary open run dialog for wine binary to execute wine binary EXIT STATUS
0 if OK or -1 if serious troubles FILES
/usr/bin/q4wine The Q4Wine main gui program /usr/bin/q4wine-cli The Q4Wine command line interface program /usr/bin/q4wine-helper The Q4Wine runner helper program /usr/lib/q4wine Directory containing Q4Wine's shared libraries $HOME/.config/q4wine Directory containing q4wine config, icons, database and temporary files. AUTHORS
Thanks to all: Q4Wine is available thanks to the work of many to all people, who was involved in development process, testing, bugreporting, packaging or translation creation. For a full listing of the authors, please see the file AUTHORS in the top-level directory of the source distribution. Active developers: Alexey Malakhov (John Brezerk) <brezerk at gmail.com> Project maintainer, main developer, web site designer and developer, project documentation, support, etc. ;) Sergey Skrypnic (opium) <opium@jabber.com.ua> Website developer, hosting administration Inactive developers: Pavel Zinin (pashazz) <pzinin at gmail.com> Winetricks plugin developer Dmitry Marakasov (amdmi3) <amdmi3 at amdmi3.ru> FreeBSD support fixes COPYRIGHT
Q4Wine can be distributed under the terms of the GPLv3 license. A copy of the license is in the file LICENSE in the top-level directory of the source distribution. AVAILABILITY
The most recent public version of wine can be downloaded from http://q4wine.brezblock.org.ua/download/ The latest snapshot of the code may be obtained via GIT for information on how to do this, please see http://q4wine.brezblock.org.ua/down- load/#git Q4Wine, development headquarters, is at http://q4wine.brezblock.org.ua This website contains a great deal of information about Q4Wine. BUGS
If you find a bug in Q4Wine please report it to <brezerk at gmail.com> or directly to Q4Wine bug tracker https://source- forge.net/projects/q4wine/ SEE ALSO
q4wine-cli(1), q4wine-helper(1), wine(1), wineserver(1) Q4Wine 0.120-r Manual 27 Dec 2010 q4wine(1)
All times are GMT -4. The time now is 05:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy