Sponsored Content
Top Forums UNIX for Advanced & Expert Users Watch directory and move specific file extensions Post 302440004 by Habitual on Sunday 25th of July 2010 08:10:33 PM
Old 07-25-2010
yum -y install inotify-tools

while true; do inotifywait -r -e MODIFY dir/ && <script>; done;

Tweak as necessary.
HTH.
This User Gave Thanks to Habitual For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Move a file from windows directory to unix directory

Move a file from windows directory to unix directory, is this possible? if it is, can someone help me on this? Thanks! God bless! (1 Reply)
Discussion started by: kingpeejay
1 Replies

2. Shell Programming and Scripting

file extensions in a directory structure

Hi, I have a huge directory structure with multiple directories and subdirectories in each of the directory. i am trying to find the various file extensions in the directory structure and put them into a file. is there any way through which i can accomplish this (4 Replies)
Discussion started by: itsritish
4 Replies

3. Shell Programming and Scripting

Move the latest or older File from one directory to another Directory

I Need help for one requirement, I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix. Example: Source Directory : \a destination Directory : \a\b File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt) File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies

4. Shell Programming and Scripting

List directory name (only once) after multiple file extensions found

Here is a simplified example of my problem. Say I have the following 3 sub-directories; ./folder1 A.txt A.sh ./folder2 B.txt ./folder3 C.txt C.sh I would like to list the directory names which contain both '.txt' & '.sh' type extensions. I have came up with the following code;... (8 Replies)
Discussion started by: mmab
8 Replies

5. UNIX for Dummies Questions & Answers

look for file size greater than "0" of specific pattern and move those to another directory

Hi , i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory.. Ex... abc_0702, abc_0709, abc_782 abc_1234 ...etc need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
7 Replies

6. Shell Programming and Scripting

Remove comments from file with specific file name extensions

Hello Unix board community, I have to program a shell script, but I am a complete noob so I hope I get some help here. The assignment is as follows: The program removes all comments regardless of formatting or language from files with specific file name extensions (php, css, js, ...).... (3 Replies)
Discussion started by: TheZeusMan
3 Replies

7. Shell Programming and Scripting

Shell scripting-I need a script which should watch a directory for a file with specific directory

I need a script which should watch a directory for a file with specific directory. If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column. The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies

8. Shell Programming and Scripting

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 :). mv -v /home/cmccabe/Desktop/NGS/API/6-10-2016{bam/{validation,coverage},bedtools /media/cmccabe/"My... (6 Replies)
Discussion started by: cmccabe
6 Replies

9. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies

10. Shell Programming and Scripting

Bash to move specific files to directory based on match to file

I am trying to mv each of the .vcf files in the variants folder to the folder in /home/cmccabe/f2 that the .vcf id is found in file. $2 in file will always have the id of a .vcf in the variants folder. The line in blue staring with R_2019 in file up to the -v5.6 will always be an exact match to a... (4 Replies)
Discussion started by: cmccabe
4 Replies
FBAUTOSTART(1)							fbautostart Manual						    FBAUTOSTART(1)

NAME
fbautostart - Autostart all XDG applications SYNOPSIS
fbautostart [options] DESCRIPTION
fbautostart(1) is an XDG complaint startup tool. This will go through the directories set up by the spec, and start all applications that match it's current identifier. You may change that identifier with the FBXDG_DE env var. This tool has almost no library dependencies and was written to be smart about that sort of stuff. There is a greater then average chance that you will find a bug, since it is a from-scratch implementation of the .desktop spec. Pleas report bugs. Please. FILES
~/.config/autostart This folder contains the default user XDG dot-desktop files that will be run ( unless it's overridden by an ENV variable ) /etc/xdg This folder contains the default system XDG dot-desktop files that will be run ( unless it's overridden by an ENV variable ) OPTIONS
Sadly, there are no flags in this particular release. ENVIRONMENT VARIABLES
XDG_CONFIG_HOME The XDG root directory for the user's startup files, which may override the global startup files. XDG_CONFIG_DIRS The root XDG directory, where global XDG files are maintained. FBXDG_DE Development environment that we should act upon. This defaults to "FLUXBOX", since this is a fluxbox project, after all. Please note this is case sensitive. FBXDG_EXEC This dictates if we should execute the application that we've been told to or not. This is particularly useful for debugging the app. HOME The location of one's home directory, such that ~/ will be expanded to /home/user/ EXAMPLE
fbautostart AUTHORS
Paul Tagliamonte <paultag@ubuntu.com[1]> for fbautostart 2.718281 SEE ALSO
fluxbox(1) AUTHOR
Paul Tagliamonte <paultag@ubuntu.com> Author. NOTES
1. paultag@ubuntu.com mailto:paultag@ubuntu.com fbautostart.txt 7th September 2011 FBAUTOSTART(1)
All times are GMT -4. The time now is 07:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy