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
gnome-search-tool(1)					      General Commands Manual					      gnome-search-tool(1)

NAME
gnome-search-tool - the GNOME Search Tool SYNOPSIS
gnome-search-tool [options] or select Search for Files... from a Main Menu or from the Places menu in a Menu Bar DESCRIPTION
GNOME Search Tool is a utility for finding files on your system. To perform a basic search, you can type a filename or a partial filename, with or without wildcards. To refine your search, you can apply additional search options. GNOME Search Tool uses the find, grep, and locate UNIX commands. The case sensitivity of the search depends on your operating system. For example, on Linux, the find, grep, and locate commands support the -i option, so all searches are case-insensitive. For full documentation see the GNOME Search Tool online help. OPTIONS
--help Show help message --named=STRING Set the text of "Name contains" search option --path=PATH Set the text of "Look in folder" search option --sortby=VALUE Sort files by one of the following: name, folder, size, type, or date --descending Set sort order to descending, the default is ascending --start Automatically start a search --contains=STRING Select and set the "Contains the text" search option --mtimeless=DAYS Select and set the "Date modified less than" search option --mtimemore=DAYS Select and set the "Date modified more than" search option --sizemore=KILOBYTES Select and set the "Size at least" search option --sizeless=KILOBYTES Select and set the "Size at most" search option --empty Select the "File is empty" search option --user=USER Select and set the "Owned by user" search option --group=GROUP Select and set the "Owned by group" search option --nouser Select the "Owner is unrecognized" search option --notnamed=STRING Select and set the "Name does not contain" search option --regex=PATTERN Select and set the "Name matches regular expression" search option --hidden Select the "Show hidden and backup files" search option --follow Select the "Follow symbolic links" search option --mounts Select the "Exclude other filesystems" search option AUTHOR
GNOME Search Tool was originally written by George Lebl (<jirka@5z.com>). Version 2 was written by Dennis M. Cranston (<den- nis_cranston@yahoo.com>). This manual page was originally written by Jochen Voss <voss@mathematik.uni-kl.de>. Version 2 was written by Dennis M. Cranston (<den- nis_cranston@yahoo.com>). SEE ALSO
find(1), locate(1), grep(1) gnome-utils 2.27.1 March 16 2009 gnome-search-tool(1)
All times are GMT -4. The time now is 05:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy