Sponsored Content
Top Forums Shell Programming and Scripting Errors trying to use all files of a type Post 302955361 by MadeInGermany on Wednesday 16th of September 2015 04:12:50 PM
Old 09-16-2015
And chained
Code:
basename=${f##*/}
prefix=${basename%%.bam}

This User Gave Thanks to MadeInGermany For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

deleting files by type (symbolic links)

How do I delete just the symbolic links in a directory? I have files that I wish to keep that have similar names, length and date/time. Can I use file size? Thanks kyle (4 Replies)
Discussion started by: kryan_toolboy
4 Replies

2. UNIX for Advanced & Expert Users

Type v for generated files

Hi All, I was checking some of the files and I got the following entries:- =============== v, 664, serv, serv, version.txt, exe L, 775, serv, serv, start.sh, eventserv ================ Could someone please tell me what does the type"v" and "L" represent to. I have not... (2 Replies)
Discussion started by: shubhranshu
2 Replies

3. UNIX for Advanced & Expert Users

Deleting older files of a particular type

hi This should be easy but i'm obviously missing something obvious. :) I'm looking to delete files from yesterday and older of extension .txt and there a range of subfolders with these files in them. The command runs but doesn't delete anything. SUSE 10. find /testfolder -maxdepth 2 -type f... (6 Replies)
Discussion started by: cmap
6 Replies

4. UNIX for Advanced & Expert Users

find -type d returning files as well as directories

Can anyone see why the following command returns all files and not just the directories as specified? find . -type d -exec ls -F {} \; Also tried find . -type d -name "*" -exec ls -F {} \; find . -type d -name "*" -exec ls -F '{}' \; -print Always returns all files :-\ OS is... (2 Replies)
Discussion started by: tuns99
2 Replies

5. Shell Programming and Scripting

Reading files of different type and same basename

Hi ! all I have need of accessing multiple files of different type same base name, and I want to compare base name if matching then I want to send those 2 files of different type to some program, for further processing my files are like this file_1.txt file_2.txt file_3.txt file_4.txt... (6 Replies)
Discussion started by: Akshay Hegde
6 Replies

6. Shell Programming and Scripting

Delete files of the same type if there are more than 3

hi, I would like to delete files in a folder starting with letters ab and fe and so on. It should only delete if there are more than 3 files of that type in that folder. Please suggest me how to write a script. i am new to this scripting. (4 Replies)
Discussion started by: Sneddy
4 Replies

7. UNIX for Dummies Questions & Answers

Search in one type of files and replace

I am not sure how to search and replace the word in the few specific files. I need to search and replace word in only the name containing pepsi in the filename. (12 Replies)
Discussion started by: ramkumar15
12 Replies

8. Shell Programming and Scripting

Latest list of files of each type

find /tmp/testlog/kSR*"_"2018* -type f -printf '%T@ %p\n' | sort -n | tail -3 | cut -f2- -d" " /tmp/testlog/log/KSR04_2018-07-05.log /tmp/testlog/log/KSR04_2018-07-06.log /tmp/testlog/log/KSR01_2018-07-06.log But, I would see the following output(latest files for each KSR tuype) ... (3 Replies)
Discussion started by: jhonnyrip
3 Replies
VFS_MEDIA_HARMONY(8)					    System Administration tools 				      VFS_MEDIA_HARMONY(8)

NAME
vfs_media_harmony - Allow multiple Avid clients to share a network drive. SYNOPSIS
vfs objects = media_harmony DESCRIPTION
This VFS module is part of the samba(7) suite. The vfs_media_harmony VFS module allows Avid editorial workstations to share a network drive. It does this by: 1. Giving each client their own copy of the Avid msmMMOB.mdb and msmFMID.pmr files and Creating directories. 2. Allowing each client to explicitly control the write time the Avid application sees on Avid media directories. This module is stackable. CONFIGURATION
vfs_media_harmony automatically redirects requests from clients for Avid database files or an Avid Creating directory to a client-specific version of the file. No configuration beyond enabling the module is needed to get this portion of its functionality working. If Mac and Windows Avid clients will be accessing the same folder, they should be given separate share definitions, with hidden Mac files vetoed on the Windows share. See EXAMPLES. To allow each client to control when the Avid application refreshes their Avid databases, create files for each client and each Avid media directory with the name [avid_dir_name]_[client_ip_address]_[client_username]. To trigger Avid database refreshes, update the write time on those files. See EXAMPLES. It is also necessary for the cache locked write times = no option to be set for clients to be able to control their Avid media folder write times. EXAMPLES
Enable media_harmony for Mac and Windows clients: [avid_mac] path = /avid vfs objects = media_harmony cache locked write times = no [avid_win] path = /avid vfs objects = media_harmony cache locked write times = no veto files = /.DS_Store/._@/.Trash@/.Spotlight@/.hidden/.hotfiles@/.vol/ delete veto files = yes Create the files that will allow users david and susan to control their own Avid database refreshes: touch '/avid/OMFI MediaFiles_192.168.1.10_david' '/avid/OMFI MediaFiles_192.168.1.11_susan' '/avid/Avid MediaFiles/MXF/1_192.168.1.10_david' '/avid/Avid MediaFiles/MXF/1_192.168.1.11_susan' Trigger an Avid database refresh for user david: touch '/avid/OMFI MediaFiles_192.168.1.10_david' '/avid/Avid MediaFiles/MXF/1_192.168.1.10_david' If you have a large number of Avid media folders to manage, you can give each editor a suitably modified version of examples/scripts/vfs/media_harmony/trigger_avid_update.py to create and update these files. CAVEATS
vfs_media_harmony is designed to work with Avid editing applications that look in the Avid MediaFiles or OMFI MediaFiles directories for media. It is not designed to work as expected in all circumstances for general use. For example: It is possible to open a client-specific file such as msmMMOB.mdb_192.168.1.10_userx even though it doesn't show up in a directory listing. VERSION
This man page is correct for version 3.2.7 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. Samba 4.0 06/17/2014 VFS_MEDIA_HARMONY(8)
All times are GMT -4. The time now is 09:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy