General :: Moving Symlinks Into A Folder Based On Id3 Tags?

Apr 3, 2010

I'm trying to get my music folder into something sensible. Right now, I have all my music stored in /home/foo so I have all of the albums soft linked to ~/music. I want the structure to be ~/music/<artist>/<album> I've got all of the symlinks into ~/music right now so I just need to get the symlinks into the proper structure. I'm trying to do this by delving into the symlinked album, getting the artist name with id3info. I can do this, but I can't seem to get it to work correctly.

for i in $( find -L $i -name "*.mp3" -printf "%h
")
do
echo "$i" #testing purposes

[code]....

I'm trying to mv The Trance Mix 3 Wanderlust - DJ Exortius [TRANCE DEEP VOCAL TECH]@ into the real directory DJ Exortius. DJ Exortius already exists, so it's just a matter of moving it into the correct directory that's based on the id3 tag of the mp3 inside.

PS: I've tried easytag, but when I restructure the album, it moves it from /home/foo which is not what I want.

View 2 Replies


ADVERTISEMENT

General :: Real Moving Of A Folder's Content To Another Folder?

Feb 7, 2011

Is there a Commend to move the content of a folder -only image files no subfolders- to another destination folder?Actully, I had a look on the following post:Post tilte:Using mv to move the content of one directory into anotherFrom it, I tried that:

Code:
# rsync -a SOURCE/ DEST/
But, it copy a folder as all to the distination.

[code]...

View 10 Replies View Related

Ubuntu :: Finding A Program That Will Sort The Music Into Folders Based On Their Genre Tags

Feb 19, 2010

I used MusicBrainz Picard to tag FLAC and Mp3 files, fixed any necessary genre tags in Rhythmbox, and used EasyTag to rename the actual files.But now I'm interested in using those genre tags as folder names...is there any program that will sort my music into folders based on their genre tags?

View 5 Replies View Related

Ubuntu :: Add A Folder To A Hard Disk Which Was Full Of Symlinks To A CD Drive

Jun 22, 2011

if there was a way, to add a folder to a hard disk which was full of symlinks to a CD drive. This would primarily be a way to store offline media and a way to access it. I would still be able to browse the folder structure and see the files (but possibly not the sizes). I imagine something like this:

/archive/cd/cd1/photos/me.jpg > /mnt/cdrom/cd1/photos/me.jpg

Therefore I can see what files I have available, and I know which media to insert (in this case cd1) and I would then be able to view the files? Or if anyone has a better idea I'm open to it. Just to mention I don't have a GUI on this server, it is completely headless so any solution needs to be console based

View 1 Replies View Related

General :: Move Content Of Folder Moving To Public_html?

Mar 25, 2011

i want to move all files inside the folder moving to folder public_html which command i should use? m using centos5 64bit tell me full command which i should writer in ssh client..so my all files will be moved to public_html...from moving folder.

View 4 Replies View Related

General :: Moving Files From Folders And Subfolders To A Specific Folder?

Aug 21, 2010

I am using secure delete to remove files from a Debian Linux PC. However, secure delete does not remove folders. This has lead me to look at writing a script that would move files to a predetermined folder for deletion. My plan is as follows:I have a folder on my desktop called shredder where I move the contents of the waste bin to. The script needs to identify all files within the folders and sub folders, within the shredder folder, and move each file to the shredder folder and then delete the folder. At this point secure delete can be used with a command like shred -v -u *.*on the shredder folder.The problem I have is in creating the code to move files from the different folders and then deleting the folders. Note that the names of the files, folders and subfolders will not always be known

View 12 Replies View Related

General :: Software Rec - Folder-only Based Music Player?

Aug 22, 2011

I have my music sorted using directories so I don't want a library, tags and what not.What I want:

easily (recursively) add directories to playlist from my music root, not from library songs in playlist grouped by directories they reside in directories in playlist must be collapsible and rearrangable, option to collapse all but currently played folder being a nice bonus buttons/shortcuts for next/prev directory are a must shuffle songs within their directories, shuffle directories within playlist

[Code]...

View 3 Replies View Related

Fedora :: Moving An LVM Based Virtual Machine

Jul 28, 2010

I'm hoping this is the right sub-forum, if not please move this post. My question is, how would I go about moving an LVM based virtual machine to a different host? Can I just use dd to copy the entire logical volume to a file, move the file to the other host, then again use dd to copy the file onto a newly created logical volume? I'm using KVM by the way.

View 2 Replies View Related

General :: Script To Execute A Command Based On The Last Modified Time Of A Folder

Oct 19, 2010

I need a script that executes a command based on a folder's last modified time.

if "/var/data" was modified in less than an hour then "/usr/local/etc/searchd stop" should be run

can we use "find -mmin +60 -type d" in conjunction with second command

View 1 Replies View Related

Fedora :: Open Music Folder In Nautilus When Need To Edit Tags Of Its Files?

Jun 2, 2011

That in essence is my question. It is much easier to open a music folder in nautilus when you need to edit tags of music files.

I tried working with the nautilus-action configuration tool but to no avail. Can someone point me in the right direction?

View 7 Replies View Related

Ubuntu Servers :: Moving Websites From Shared Host To Xen Based VPS

Nov 12, 2010

I am moving some websites from a shared host to a newly configured Xen based VPS with Ubuntu 10.04. A steep learning curve but I am getting there! I have a couple of sites installed on the new server and want to test them out, from what I understand I should be able to edit /etc/hosts on my desktop computer (running Ubuntu 10.04) which should automatically redirect my browser to the new server. But it doesn't seem to work.

This is what I appended to the /etc/hosts file:
12.34.56.78 www.xxxx.com

I thought that this should send any requests for www.xxxx.com to 12.34.56.78? Some googling indicated that the browsers I am using may be using DNS caching, ignoring the hosts file. I've tried clearing the cache with Chromium 7.0.517.44 (64615) and Firefox 3.6.12, and even installed a plugin in Firefox to block DNS caching.

View 9 Replies View Related

Programming :: Moving Files To Directories Based On Part Of Filename?

Jul 6, 2010

I have a single directory of pairs of files, with the pairs sharing a string as the beginning of the filename:

SF1-27F1492R-clone01_T3_A18_001.ab1
SF1-27F1492R-clone01_T7_A20_002.ab1
SF1-27F1492R-clone02_T3_A19_003.ab1
SF1-27F1492R-clone02_T7_A21_004.ab1
...etc

I need to create a subdirectory for each pair then move the pair into the subdirectory.

I accomplished the first step using:

$find /foo -name '*T3*' -exec mkdir '{}.wrk' ;

I can use a regex to designate the pair and associate the directory, but how do I use regex in a path as the output of a move command?

View 7 Replies View Related

Ubuntu Multimedia :: Configure Vlc That It Won't Show Tags - Ffmpeg Should Strip Tags

Dec 19, 2010

I have a lot of avis with annoying metadata that show in vlc. Since I cannot figure out how to configure vlc in a way that it won't show the tags, ffmpeg should strip the tags. This is supposed to do the trick:

[Code]...

View 7 Replies View Related

Ubuntu :: Automate Creating Directories Based On File Names And Moving Files Into Them

Apr 30, 2011

I have a bunch of .7z files in a directory, and I need to put each one of them into a separate directory, named after the file (without extention). The command line I use:

Code:
find . -type f | mkdir `sed -e "s:..(.*)...:1:"` ; ls | grep .7z | cp * `sed -e "s:(.*)...:./1/:"`
Copying fails though:

[Code]....

PS. I don't want to use scripts, I want to do it using simple commands and piping.

View 5 Replies View Related

Ubuntu :: Moving A Folder In Terminal

Jan 23, 2010

I had a folder named "Rage Against the Machine" in my Home directory which contained a bunch of music files. I opened my Terminal window and planned on moving it to a folder named "Downloads" inside my home folder, so I used this command:

Code:
sudo mv "Rage Against The Machine" /Downloads

Now I can't actually find the folder inside Downloads, which I think it should be. so I even tried running this to find it:

Code:
locate "Rage Against The Machine"

and it couldn't find it either.

Where did it go??

The folder size was approximately 837.6 MB in size total.

View 4 Replies View Related

Ubuntu Installation :: Moving The /etc Folder After Install ?

Mar 7, 2010

I've been setting up a media server on a an actual server machine I picked up dirt cheap, and had it running xUbuntu fine. gave it a 5gig root directory, 5gig swap partiton, and three 34gig storage drives. Everything was running smoothly.

Just recently I learned that the 5gig's dedicated to running my operating system of choice, aren't enough to install all the software I wanted(I might be just a little greedy). The first logical step to correcting this problem was to move /etc to one of the storage drives and create a link were it was, but not being entirely sure how xUbuntu would take that, I thought I'd get an expert opinion.

The thread prefix is "all variants" because I have installed the desktops for kUbuntu and just plain Ubuntu on this machine(what I meant by being a little greedy).

View 9 Replies View Related

Ubuntu :: Moving / Resetting The Cheese Webcam Folder?

Oct 11, 2010

Every time I start up my webcam in cheese, a folder is created called 'Webcam' in my home folder, and if this folder is deleted, it will be recreated when another session is started, i would ideally like to just have this folder hidden but if i do that then it will be recreated, so is there anyway of having the folder created as a hidden .Webcam? there is no option for this in the cheese menu.

View 6 Replies View Related

Ubuntu :: Moving One Users Home Folder To Other Disk?

May 29, 2011

How would you go about moving one users home folder to a different partition, while maintaining other users home folder on the current one. Will simply running "usermod -dm /path/to/new/home username" on one of the users do the trick.

I want to run one of the users of an SSD, while the other runs of a bigger SATA disk.

View 9 Replies View Related

Ubuntu :: Moving Downloaded Files To Correct Folder?

Sep 1, 2011

I'm looking for a script or a bittorrent client which is able to move a file after downloading and placing it in a specific folder depending on the file type. E.g. moving a newly downloaded movie to "Videos" and an ISO-file to "Files".

I feel as if i have used a client with this functionality before but can't remember the name.

Since I at the moment use Transmission as my bittorrent client a script would also work since Transmission can run it after finishing the download.

View 7 Replies View Related

Server :: Stop Users Moving Up Folder Structure?

May 12, 2011

I have a Ubuntu 10.10 server; I have created several users and wish them to have their own web space (with a unique domain name for each). I have therefore created www folders within their home folder and created new Virtual Servers to host each domain name and point to the users www folder in their home folder. They can then use an FTP client to upload files. This all works well.

However, I would like to stop a user from going back up a level and traversing the tree.They can currently go back up to /home and see other users names.

View 6 Replies View Related

OpenSUSE Install :: Changing Distro - Moving My Home Folder ?

Jun 29, 2010

From what I have understood, trying out different Linux distros is one of those things that a Linux user just needs to do now and again.

So what is the "best" way of keeping your home folder intact? Should I just copy the whole home folder to a separate storage space, install a new distro (I'm thinking going from Ubuntu to Suse) and then just past it in the newly installed distro? Or are there some other, more "refined" methods?

I thought one's home folder contains a lot of config and settings files, but they would surely just be applicable to the original distro!?

I know I can try out several distros via live CDs, which I have done, but when you've taken that next step and actually want to install another distro as your main Linux operating system.

View 7 Replies View Related

General :: Debian Based - Arch Based - What Is The Practical Difference?

Jun 7, 2010

I notice that on DistroWatch, the descriptions include "debian based", "arch based", etc. For the newbie, is there any practical difference between the different bases, or is it a Coke vs Pepsi type question?

Is a distro based on Debian say, easier for a newbie to learn or work with than say one that is FreeBSD based?

View 9 Replies View Related

General :: No Symlinks Allowed In Smb Share?

Feb 8, 2010

I have the following share setup on my Ubuntu machine

# From /etc/fstab
//192.168.1.13/media /home/USER/SHARE/media cifs username=USERNAME,password=PASSWORD,_netdev,uid=USER,gid=users 0 0

[code]....

View 1 Replies View Related

General :: Can Grep Exclude Symlinks?

Oct 15, 2010

I tried to run one grep that excludes symlinks and pipe it into a second that searches for my pattern but I continue to get the recursive directory loop error. As a result (I think) my grep is incomplete as the search just loops between directories symlinked together.

View 7 Replies View Related

Programming :: Bash - Recursive Find - Create Parent Folder - Moving File

Dec 5, 2010

I'm starting bash shell script and I'm looping without any solution.

I'm trying to find some files under a folder hierarchy and in case of errors moving these files to a destination folder under the same hierarchy recreating this hierarchy if not exists.

Finding all ._* files under /src and moving them to /dest recreating folder1 or the others which contains ._* files but without moving files which does not correspond to the pattern.

Code:

I tried find command and I'am getting all needed files

Code:

But I don't know how to use the output to get the parent folder of files which are found to

1- create folder with mkdir -p /dest/folder1 or /dest/folder1/folder4

2- move found files from /src/... to /dest/... with rm command

I'm working on a find command as this trying to do all in the same line but ... little lost

Code:

View 8 Replies View Related

Ubuntu :: Deleting Files Based On Number Created (or In Folder?)

Jul 21, 2011

I'm dipping my toes into some bash scripting and was wondering if there was a way to delete a file not based on how old it is, but rather how many other files are currently in the folder... or something to that effect....

What I'm doing is creating a script to back up a folder nightly. I'd like to keep a maximum of 3 backups. However in case the script for some reason fails to run one night (computer turned off possibly) I don't want to set the condition for deletion to be the date.

I know that if I run:

Code:
find /path/to/files* -mtime +3 -exec rm {} ;
that it will delete everything older than three days. -atime and -ctime don't seem to be what I"m looking for... is there another command I can use to achieve what I"m trying to?

View 5 Replies View Related

General :: File Permissions Apply To Symlinks?

Jun 27, 2011

Let's say you have this structure:

+ directory
-- file1
-- file2
-- file3 -> /tmp/file3

file3 is a link to another file3 somewhere else on the system.

Now let's say I chmod 777 the directory and all contents inside it. Does my file3 in /tmp receive those permissions? Also, let's say we have the same situation but reversed.

/tmp/file3 -> /directory/file3

If I apply the permissions on the file being linked to, how does that effect the link?

View 2 Replies View Related

General :: Linux And Windows Symlinks Interchangeability

Apr 10, 2010

This question is about windows 7. I want the "C:program Files" folder to be a symlink to a directory on another partition. I can't do this from within windows because it locked the Program Files Folder. Will a linux live CD do the trick?

View 1 Replies View Related

General :: Resolving Symlinks Mounted Via Samba On Windows?

Feb 11, 2010

I have a samba mount in Windows, mounted from a local Linux devbox. The projects on this mount contain a lot of symlinked directories. They all work fine and look like normal directories to Windows. What I'd like to do is figure out for a given file what its real UNIX path is.The context is: in my editor I have a script that runs the Perforce open command, to which I pass the file location.p4.exe edit FILE_LOCATION

However, perforce will not understand this FILE_LOCATION, if on the Linux side part of the path is a symlink. It needs to know the real path.What I need is something along the lines of the Linux readlink command, which resolves symlinks in paths.

View 1 Replies View Related

General :: Copy Symlinks To Target As Normal Folders?

Nov 30, 2010

i have a folder with symlinks:

marek@marek$ ls -al /usr/share/solr/
razem 36
drwxr-xr-x 5 root root 4096 2010-11-30 08:25 .

[code]....

i want to copy it to ~/solrTest but i want to copy files from symlink as well when i try to cp -r /usr/share/solr/ ~/solrTest i will have symlink here:

marek@marek$ ls -al ~/solrTest
razem 36
drwxr-xr-x 5 root root 4096 2010-11-30 08:25 .
drwxr-xr-x 358 root root 12288 2010-11-26 12:25 ..

[code]....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved