Ubuntu :: Search For File Modified At Specific Time

Aug 20, 2010

How do you find a file modified March 17, 2010, between 3:30 pm and 4:05 pm? I know that I must be missing something somewhere.How do you search for info like this? I goggled "search files time Linux" and got about 38,300,000 results. I looked through the first four pages and did not see what I was looking for.Do I need to calculate how many minutes ago that is and give that to find.I really want to do this in the GUI so that I can operate on the files found without typing in so much stuff.

View 1 Replies


ADVERTISEMENT

General :: Search Files Modified In A Specific Day?

Dec 2, 2010

How can I search files modified in a specific day?

View 2 Replies View Related

General :: Parsing File Dates - Get The Date Of The Last Time A File Was Modified ?

Jan 11, 2010

I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.

View 2 Replies View Related

General :: Search For A Specific File In The Sysconfig Directory?

Mar 10, 2010

If i am in the root directory and i need to search for a specific file in the sysconfig directory, is there any way to search this directory for a file?

View 10 Replies View Related

Server :: Create A File From Two Files With Specific Search Conditions?

May 5, 2010

I need to create a report ,

The data is spread across two files in below format,

File 1
=========
<Class Name1>
Ph: 001
Place: place001
</class>

[Code]....

View 4 Replies View Related

General :: How To Make Grep To Search A Pattern In Only Specific File Type?

Mar 6, 2010

To search a string pattern in all files in a directory and subdirectories, I am using;

Code:
grep -R "myclass::my-func(" mydirectory/
Now I want grep, to search in only specific file types say *.cc. Please help me. I have read manual of grep, but could not deduce any hint.
Best Regards.

View 7 Replies View Related

General :: Run A Program For A Specific Amount Of Time Starting At A Specific Time?

May 18, 2010

I want to record an internet radio station starting at 2:00am tomorrow morning. The specific program on the radio station lasts until 6:00am. The command I need to run to record the station is: Code:mplayer http://wjcu.jcu.edu:8001/listen.pls -ao pcm:file=indie_heat_of_the_night.wav -vc dummy -vo nullI'd use cron, but 1. I'm not sure how to and 2. it seems unnecessarily complicated for something that I only want to run once. If cron is the only/easiest solution, I guess I'll just have to resort to that, but I'd rather not.

View 12 Replies View Related

Programming :: Search A Bunch Of Files In A Specific Folder For A Specific Number?

Jul 24, 2010

I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".

The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .

View 5 Replies View Related

General :: Search Within A Log File Within A Time Range

Jun 24, 2011

I want to search in my apache log, for events which have occurred say between 11:00 AM to 2:00 PM. I have got few scripts/commands but they are not conclusive, some of then are trying to do an exact match(awk) and for some i am just getting the pattern wrong (eGrep)

I am running RHEL.

Apache log eg:
================================================================
10.92.120.129 - - [24/Jun/2011:01:29:07 -0500] "GET /favicon.ico HTTP/1.1" 302
================================================================

now if i want to find out the logs from 1 PM to 2 PM

some example i had was:

cat <apache.log> | grep -E '07/Apr/20110[1-2]:[0-5][0-9]|02:00)'

small script in which i can pass the start time and end time range, and it should give an output of the rows which fall under that time range.

View 5 Replies View Related

Ubuntu / Apple :: Extracting Specific File From Mac Time Machine Drive?

Mar 5, 2011

I am trying to extract just a few files/folders from a Time Machine backup, but can't seem to find them. The drive is automatically mounted in Ubuntu, and am able to access after enabling view hidden files, the HFS+ Private Data Directory. But that is a jumbled array of thousands of numbered folders, with each taking a fair amount of time to open on this aging Dell running 10.10.

I've tried running the standard Places - Search for Documents, with 'Show hidden and backup files' enabled, but that won't pull up any of the search times I'm going for (and seemingly won't find anything at all on the drive). So, is there any way to decipher the directory tree so as to be able to access this data from Ubuntu? Or perhaps a file embedded somewhere in there that lists out the original structure, so that I can use it as an index to see what number correlates to what originally named folder?

View 2 Replies View Related

Debian Multimedia :: How To Get VLC To Start At Specific Time In Media File

Mar 14, 2015

How do I get vlc to start at a specific time in a media file. I can do it easily in mplayer2, mpv but not vlc. Let's say the media file is named abc.avi (file format,container not important for this example.) Also the running time is around 2+ hrs. In mplayer2 and mpv I can simply do :-

Code: Select all$mpv abc.avi --start=00:59:00

And it will start running at that point in time.

In vlc, it also seems to have something at :-

Code: Select all[$] vlc --advanced --help
......
......

Playback control:
      --input-repeat <integer [-2147483648 .. 2147483647]>
                                 Input repetitions
      --start-time <float>       Start time

Now I don't understand what the <float> bit. I tried :-

Code: Select all$vlc abc.avi --start-time=00:59:00

But that didn't work. It's possible that it might be a bug, then again I might not have done it correctly.

View 3 Replies View Related

General :: Script To Display Modified Date&time Of Files?

May 31, 2010

I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.

For this what needs to be added in the below script??

#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt

View 7 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

Ubuntu :: Multiple File Search \ Search A File For A Certain Keyword?

Nov 13, 2010

for example we search a file for a certain keyword..is there any application available which will enable us to search for a single keyword in all the files within the folder ?i want to search for a keyword in about 1000 files..if i do it manually it will take loads of time..

View 6 Replies View Related

General :: Shell Script That Adds Users Name To A File When The File Is Modified?

Mar 30, 2010

I need a shell script that will add the users name and date to a file when the user has modified the file, these files are within a group and only accessible to this group. But we need a way for people in the group to know who and when the file was last modified.

View 1 Replies View Related

Software :: Using Find To Only Search Specific Directories?

Jan 9, 2010

how the "-prune" option works. I've searched quite a bit on line, and as far as I can tell, "-prune" works exactly the opposite as it says.

I'm using Apt-proxy, and I want to scan through the folders, and find files that end with "*.bz2" The problem is that the search takes a while because of all the "*.deb" files. Fortunately, they're stored in their own folder:

/var/cache/apt-proxy/ubuntu
/var/cache/apt-proxy/ubuntu-security
/var/cache/apt-proxy/partner
each have two folders:

[Code]....

View 5 Replies View Related

Debian :: Aptitude Search Query For Specific Distribution

Feb 23, 2010

I've figured out that '~i !~M' will give me all packages I have manually installed. Can I formulate a query such that I get all packages manually installed from a particular distribution (e.g. Lenny, Squeeze, Sid)? Yes, I'm using pinning.

View 1 Replies View Related

General :: Search Partition For Specific Sequence Of Bytes

Aug 17, 2010

I lost an important file. I know what bytes the file begins with. How can I search the partition for the sequence of bytes?

View 4 Replies View Related

Software :: Search For Video Files That Use A Specific Encoding?

Oct 27, 2009

Is there an app or find parameter that can search for video files using a specific (DivX for example) encoding? On Windows, you can do this, so I was hoping there would be some way on Linux whether it's with find or another app. I want to find all (*.avi OR *.divx) on my file system with the DiVX fourcc tag (i think that's what its called)

View 4 Replies View Related

Programming :: Use AWK To Search For A Specific String Inside Html?

Jan 26, 2010

how to search for a specific string of text inside an html document. I then want to cut out that specific data that the field or string contains. I want to do a shellscript that makes this function automaticly.

For example:

#
#Here i want to find the field "town" inside the html/java and then cut #out the town name from it and paste that to an file.
#
#

[Code].....

View 8 Replies View Related

Ubuntu :: Prevent File From Being Modified?

Mar 1, 2011

In /etc/default/rcS I have set FSCKFIX=yes. This solves a recurring 'no init found' problem that prevents my machine from booting. Occasionally however, the setting reverts (by itself somehow) to FSCKFIX=no. Thus my machine cannot boot. Is there a way that I can prevent this file from being changed?

View 1 Replies View Related

General :: Recursive Search For Files That Hold Some Specific Text?

Jan 18, 2011

How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files?

I know the following command can be used to replace a string recursively

find /var/www -type f -print0 | xargs -0 sed -i 's/old string/new string/g'

I do not want to replace the string, I just want a list of all files which contain the string.

View 4 Replies View Related

Programming :: How To Know A File Is Modified

May 3, 2011

I want to know what system call is used in linux C programming is used to know whether a file is modified. I know that make utility compiles the file using the modification dates only. I want know how to find whether the file is modified or not.

View 4 Replies View Related

General :: Shell Script To Search For Files Of Specific Extension And Delete Them All?

Mar 17, 2010

i want such a shell script or single line command to delete all the files with extension specified in script i have bash !! ex... delete all files of extension .obj

View 4 Replies View Related

Fedora Servers :: Writing A Script To Search Through Specific Folders On A Based Server?

Feb 19, 2009

I am thinking about writing a script to search through specific folders on a Linux based server (Centos 5) and report any changes made to any file on that server.Like a detailed change log with the date it was changed and the difference in size. Dose anyone know if such a script exist?

View 2 Replies View Related

Ubuntu :: Find Last Modified File In Current Directory And All Subdirectories?

May 28, 2010

I need to write a script that is given a directory as an argument, and it prints the last modified file from that directory and all its subdirectories.

for example:

$ newest /usr/etc
--> /usr/etc/httpd/httpd May 28 12:16

If I had to do it only for the current dir, it would be easy...I'd probably use "ls -lt" and then show only the first line...

View 1 Replies View Related

Ubuntu :: Bluefish Annoying Message - File Has Been Modified By Another Process

Jan 27, 2010

I'm using Bluefish on my laptop to modify files on my desktop web server. The machines are networked with samba. Every time I save the files, I'm prompted with this window that says: File has been modified by another process. It gives me the option to cancel or overwrite. It's the only program that does this. I can click on overwrite and that works, but it's pretty annoying.

View 1 Replies View Related

Red Hat / Fedora :: How To Find Out Who Has Modified/edited A File

Jan 27, 2011

I use RadHat Linu5.We usually log in to LINUX via putty (remote). Very often many people use the same user and password to log in.I wonder how to tell who has edited/modified a file?

View 9 Replies View Related

General :: Smbclient Check File Modified Before 'get'

Oct 28, 2010

I checked the smbclient man but could not find any switch to us in combination with 'get' to check if the file has been modified before download.

View 1 Replies View Related

Software :: Find Out Who Has Modified / Edited A File?

Jan 27, 2011

I use RadHat Linu5.

We usually log in to LINUX via putty (remote). Very often many people use the same user and password to log in.

how to tell who has edited/modified a file?

View 9 Replies View Related







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