Sponsored Content
Top Forums Shell Programming and Scripting Busybox search replacement for find Post 302934245 by krischeu on Thursday 5th of February 2015 02:29:01 PM
Old 02-05-2015
Busybox search replacement for find

Hi,
I am looking for a solution to find files in a folder and subfolders.
Those files should be moved (some with spaces) when they were between 2015 Feb. 03 and 2014 Nov. 24.

find . -type f -newermt "2010-01-01" ! -newermt "2010-06-01"

I am working on a QNAP with a small busybox. Unfortunately the find command is not implemented with all features.
For this reason I am looking for a bash script. A Little bit of find is working.
Code:
 #!/bin/bash
echo "DOC"
for file in `find /share/external/DEV3301_1/backup/scripte/1 -type f -name "*.doc*"`
 do mv -i "$file" /share/external/DEV3301_1/backup/scripte/2
done

Every help would be great.

Best Regards,

Heinz

Last edited by krischeu; 02-05-2015 at 03:31 PM.. Reason: example
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find and Replacement

Hi, Im new to this forum, and also to Unix. I have a requirement like this. i have one DAT file that contains data as follows, EMPNAME, DEPT, SALARY, JOIN_DT, DEDUCTION i have one configuration file that contains data as follows, SALARY BONUS DEDUCTION (5 Replies)
Discussion started by: bkiran
5 Replies

2. Shell Programming and Scripting

sed script for search and replacement

New to scripting.. think i need sed to do the following but need help. have a properties files with variable i need to replace using substitution for e.g in x.properties xslt.root.dir=/apps1/test/cs.war/presentation/xsl have a shell script with following echo "Edit... (3 Replies)
Discussion started by: cookie23patel
3 Replies

3. Shell Programming and Scripting

search for any number, and retain them in replacement

Hello! Here is what I am trying to do: I am taking a class at school that is using a lot of literature that is in the public domain, and available for free on the web. Rather than read them online in HTML, I have been pulling them down and quickly and dirtily tagging them up and typesetting... (4 Replies)
Discussion started by: ccox85
4 Replies

4. UNIX for Dummies Questions & Answers

global search and replacement of a non-ascii character

Hi, I need to do a global search and replacement of a non-ascii character. Let me first give the background of my problem. Very frequently, I need to copy set of references from different sources. Typically, a reference would like this: Banumathy et al., 2002 G. Banumathy, V. Singh and U.... (1 Reply)
Discussion started by: effjay
1 Replies

5. UNIX for Dummies Questions & Answers

VIM search and replace with line breaks in both the target and replacement text

Hi, Ive spent ages trying to find an explanation for how to do this on the web, but now feel like I'm :wall: I would like to change each occurence (there are many within my script) of the following: to in Vim. I know how to search and replace when it is just single lines... (2 Replies)
Discussion started by: blueade7
2 Replies

6. UNIX for Dummies Questions & Answers

find Search - Find files not matching a pattern

Hello all, this is my first and probably not my last question around here. I do hope you can help or at least point me in the right direction. My question is as follows, I need to find files and possible folders which are not owner = AAA group = BBB with a said location and all sub folders ... (7 Replies)
Discussion started by: kilobyter
7 Replies

7. Shell Programming and Scripting

Search: find current line, then search back

Hello. I want to find a line that has "new = 0" in it, then search back based on field $4 () in the current line, and find the first line that has field $4 and "last fetch" Grep or Awk preferred. Here is what the data looks like: 2013-12-12 12:10:30,117 TRACE last fetch: Thu Dec 12... (7 Replies)
Discussion started by: JimBurns
7 Replies

8. Shell Programming and Scripting

Need help on find and replacement on specific line and position

I have a file with 100 lines. On 50 th line , from position 5 to rest of the data , I need to change the occurrence of A to B and Occurrence of M to N. Input file : Line1 Line2 Line3 -- -- 12345ABCDEFM --- -- Line 100 Output Line1 Line2 (40 Replies)
Discussion started by: Rajesh_us
40 Replies

9. Shell Programming and Scripting

Recursive replacement of search string using sed

Dear Unix Forum Group Members, Please do let me know how I can replace the double pipe with single pipe recursively on single record. Sample Input Data: DN set|Call prefix||| Called number address nature 0||| *789|||||||ALL number types 0||| 00||||||||ALL number types 10||... (5 Replies)
Discussion started by: srinu.kadem
5 Replies
Pod::Abstract::Filter::find(3pm)			User Contributed Perl Documentation			  Pod::Abstract::Filter::find(3pm)

NAME
Pod::Abstract::Filter::find - paf command to find specific nodes that contain a string. DESCRIPTION
The intention of this filter is to allow a reduction of large Pod documents to find a specific function or method. You call "paf find -f=function YourModule", and you get a small subset of nodes matching "function". For this to work, there has to be some assumptions about Pod structure. I am presuming that find is not useful if it returns anything higher than a head2, so as long as your module wraps function doco in a head2, head3, head4 or list item, we're fine. If you use head1 then it won't be useful. In order to be useful as an end user tool, head1 nodes (...) are added between the found nodes. This stops perldoc from dying with no documentation. These can be easily stripped using: "$pa->select('/head1')", then hoist and detach, or reparent to other Node types. A good example of this working as intended is: paf find select Pod::Abstract::Node AUTHOR
Ben Lilburne <bnej@mac.com> COPYRIGHT AND LICENSE
Copyright (C) 2009 Ben Lilburne This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-01-03 Pod::Abstract::Filter::find(3pm)
All times are GMT -4. The time now is 04:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy