General :: Descending List Ordered By File Modification Time

Feb 28, 2011

How can I generate a list of files in a directory [e.g.: "/mnt/hdd/PUB/"] ordered by the files modification time? [in descending order, the oldest modified file is at the lists end]
ls -A -lRt would be great:[URL]
But if a file is changed in a directory it lists the full directory...so the pastebined link isn't good [i don't want a list ordered by "directories", I need a "per file" ordered list]
OS: openwrt..[no perl -> not enough space for it :( + no "stat", or "file" command]

View 3 Replies


ADVERTISEMENT

General :: File Modification Time ?

Mar 30, 2010

The tail of my log is the following:

BUT:

So, how is it possible that some process writes to the file but file time modification still remains untouched?

View 2 Replies View Related

Red Hat :: Checking Last File Modification Time

Mar 5, 2010

I don't think there is a way of doing this with date or clock commands. But maybe they are writing to some file and I can take a look at the file's modification time. dmesg and /var/log/messages show nothing relevant.

View 1 Replies View Related

Server :: Copy A File Preserving Its Original Modification Time Using The Command?

Jun 8, 2010

It seems to be simple one, but couldn't figure out exactly. Say I copy a file preserving its original modification time using the command

Code:
cp -p file1 file2
Now later, I want to know when file2 was copied... How do I find it ?

View 1 Replies View Related

Server :: List Folder Size In Descending Order?

Feb 8, 2010

how to list folder size in descending orde

View 2 Replies View Related

General :: How To Change Modification Time (Created Recursively)

Jul 1, 2009

I know there exists a touch command to change the date of the files. However, I want to change the files of a directory and the directory time. Is there a command like -R. Please provide me an example of the command?

View 4 Replies View Related

General :: Command - List Only Access Time And File Name?

Mar 19, 2010

How do I list only access time and file name? For example if I do ls -l --sort=time then

[Code]...

View 5 Replies View Related

General :: Change A Files Modification Date "only" Without Changing The Time?

Oct 29, 2010

I'd like to change a files modification date "only" without changing the time. I'm aware of the 'touch' command but is seems like it only allows changing both the date and time, and not one of them. Any ideas on an easy way to change a file's modification date without also changing its time? (I have a long list of files and thus would like to run one to command to change them all)Example: Change a file's (month) timestamp from "2010-09-23 11:59:23" to "2010-10-23 11:59:23"Background: I accidentally set the wrong month on my camera and ended up with all photos having a modification timestamp with the wrong month.

View 3 Replies View Related

OpenSUSE Install :: Grub Entry Modification - Cannot Remove From Menu List

Jun 20, 2010

I've recently installed suse x64 kde in dual boot mode with windows. I have 2 primary partitions with ntfs with 1 for windows7 boot and other for data/storage. There is no boot provision for data partition. SUSE install is on extended partition. I am unable to run fdisk -l and boot info script for some reason, kde is freaking me out (used to use gnome for last 4 years). The GRUB shows data as a boot and it added an entry in its menu. I will like to remove that entry from menu list.

View 9 Replies View Related

General :: Sort Columns Of Data (descending To Ascending)?

Mar 21, 2011

I have an ASCII file containing 3 Columns of descending data as flollows:

3277.233 | 9.032167E-16 | 5.354040E-16
3276.725 | 1.825813E-15 | 7.552098E-16
3276.211| 2.472245E-15 | 8.826818E-16
3275.699| 2.943001E-16 | 3.192112E-16

[Code]....

I want to sort them in ascending order.

Does anybody know how to do it in Ubuntu 10.4.

View 5 Replies View Related

Server :: Get File Modification Times Measured To Less Than A Second?

Mar 17, 2010

Is it possible to get file modification times measured to less than a second?milisecond, nanosecond, 10th of a second.

View 3 Replies View Related

General :: List All Jobs And Their Pids From A Certain Time Frame?

May 10, 2011

Is it possible to list all jobs and their pids from a certain time frame? For instance if I needed to see all completed jobs from yesterday how would I do this? I've tried jobs -n but that was messed up because I had typed jobs right before that.

View 1 Replies View Related

Programming :: Bash Script To Copy Modification Date From A File To His Folder?

Jul 29, 2011

I need this script but I don't know how to do it I have one folder with several folders inside.On each folder a have one MKV or AVI file inside...What I need is a script to change the "modification date" of each folder to the "modification date" of each MKV or AVI that the folder has inside.

View 16 Replies View Related

General :: Use Sort Command For Its Ascending Order And Descending Order?

Aug 18, 2010

in my text file of 5 columns 2 column is in DDMMYYYY format. (ie DATE OF BIRTH). how to use sort command for its ascending order and descending order.

Is the same can be use for the date format YYYYMMDD ?

View 3 Replies View Related

Fedora Security :: Turn Off Ordered Data Mode?

Dec 8, 2009

I am currently trying to turn off ordered data mode for ext3 filesystem. I want to shred some files and apparently this won't work with journaling on.

I can't seem to find any good explanations of what exactly "ordered data" means in terms of data recovery/security...or at least none that are written in simple n00b terms. It is all written in terms of disk crashes and whether old data will mix in with the new. It doesn't say whether one's cousin will be able to poke around and find some thought-it-was-deleted porno if he's on the computer.

Can someone step me through the process of turning this off using tune2fs? (if that is the best way to do it!) Do I have to revert to ext2? Can I turn it back on later? Will I lose data (for example, does the drive need to be reformated?) once this change is made? And how does one find, read, and delete/shred the journal itself? Is "ordered data" even a real problem for data recovery?

View 7 Replies View Related

Programming :: MySQL - Get A Random Selection Of An Ordered Data Set

Jan 11, 2011

Given the following data structure: Quote:

[Code]...

What is the minimum possible MySQL query to get a random data selection that includes each Index number only once and ordered ascending. The maximum index number is known. For example running the query should get the following data: 01, 06, 07, 02. Running the query again, you may get the same data or another possible combination like: 01, 05, 07, 04. Of course you could run a loop for 1 to max_index and process a random ordered data selection until the next index number is found. But I think this will result in too many database access. Also you could run max_index queries to get all IDs that correspond to the given index and randomly select one ID for each index.

View 3 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 :: Authentication Failure In LDAP After Modification

Jun 3, 2011

I Configured LDAP Server on ubuntu Server 10.04 ,(using url ldap) and Client also it's working fine. After that I changed to ssl encryption and create certificate in server side. Now it's not authenticating from server it's shows Incorrect Password, but I can login though terminal if I am root user ,then it not ask any password it's logon to ldap user. After I changed to ldap server to ssl encryption and made one changes in client side uri ldaps://ip-address/ (/etc/ldap.conf).

View 3 Replies View Related

General :: AutoMySQLBackup Weekly Backup Modification?

May 4, 2011

I'm using AutoMySQLBackup [URL] script to backup mysql db from several server.I need little help from you who is guru in scripting. I would like to take weekly backup after every 1 week and not every week. i.e. on every 14 days. This is the weekly backup portion of the script:

Code:

# Weekly Backup
if [ ${DNOW} = ${DOWEEKLY} ]; then
${ECHO} Weekly Backup of Database ( ${DB} )
${ECHO}

[code]....

View 4 Replies View Related

General :: Panel Icon Modification Is Not Working?

Jun 21, 2011

I want to know how to modify my desktop panel in ubuntu 11.04. Panel right click is not working for me.

View 4 Replies View Related

Programming :: Php - Sort Numerical Descending Then By Alphabetical?

Mar 10, 2009

Using PHP 5.x. I would like to sort a set of values first numerically, then alphabetically. For example, here's my code so far:

Code:

<?php
print "<p style="font-family:verdana;font-size:10pt">
";
$myArray = array("1223:starfruit", "34112:oranges", "1223:zucchini", "321:apples", "34112:pears", "1223:tomatoes");

[code]....

I have fiddled with array_multisort but I can't seem to get my head around it or the many sort routines in PHP.

View 3 Replies View Related

Slackware :: EXT3-fs: Mounted Filesystem With Ordered Data Mode

Jan 20, 2010

At boot time, before entering Runlevel 3 the HDD will go mad when mounting tmpfs on /dev/shm...

Code:

EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
INIT:Entering runlevel 3

It will go on and on at the tmpfs on /dev/shm type tmpfs (rw) until i press ctrl-C...then I will stop whatever it is doing, let the hdd rest a bit, and resume normal boot..

View 13 Replies View Related

General :: Open A Script File (same File Every Time)?

Aug 12, 2010

I need to goto a folder, open a script file (same file every time). The file has different function calls, I need to comment all other function calls and just un-comment the one I want to use.

#call_1
call_2
#call_3

[code]....

View 14 Replies View Related

General :: Partition Modification Made Windows Crash ?

Feb 8, 2010

I have an HP laptop with both Ubuntu 8.04 and Windows Vista installed on it.

The other day I noticed I was running out of space in the main linux partition (the / partition, not the /home partition), so I decided to move some space from the Windows partition and move it to the linux one. I used a GParted Live CD to do that.

My partitions are ordered as follows:
Windows Vista partition (NTFS)
Main linux partition / (ext3)
Linux home partition /hom (ext3)
HP RECOVERY (NTFS - I don't know what it is, it just comes with HP laptops that have Vista on them)

So I shrank partition 1, and then "moved" partition 2 to enlarge it (GParted said everything was alright).

After doing that, I went to my linux and everything seemed to be fine, I'm also quite sure I had access to my Windows partition as always. But today I tried to start my Windows and it just got stuck on the "loading" stage (that screen that says "Microsoft Corporation" and has a green loading bar). So I shut the computer down manually (by holding the power button for a few seconds). After doing that a couple of time, I went to my linux, which worked just fine, but I was not able to go to the Windows partition. You can see how GParted looks now for my computer:[url]

As you can see, the first partition (/dev/sda1), which is supposed to be the Windows partition, is not mounted and the system doesn't seem to be able to read it properly. Here is my attempt to mount it manually:

Code:

Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by clicking on the 'Safely Remove Hardware' icon in the Windows taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for your own responsibility. For example type on the command line: mount -t ntfs-3g /dev/sda1 /windows/ -o force

Or add the option to the relevant row in the /etc/fstab file: /dev/sda1 /windows/ ntfs-3g force 0 0

View 2 Replies View Related

General :: Copying Files According To Modification Date And Extension?

Dec 30, 2010

I am trying to find a command which will copy all the files in the folder with extension ".log" which is created one day before the current date. By going through other threads in this forum I found the half solution to this problem

find /mnt/hd -mtime -1 -exec scp {} /mnt/usb ;

This command copying the all the files created one day before(not only *.log) to the /mnt/usb folder. what is the modification required to above command.

View 5 Replies View Related

General :: Merge Files By Creation / Modification Date?

Oct 4, 2010

I have a folder with hundreds of .txt files (logs of some java application) that I have to merge in to one single .txt file. This application produces a new log file everyday:

day1: logFriday10September2010.txt
day2: logSaturday11September2010.txt
...
day8: logFriday17September2010.txt
...
and so on...

I could merge the files easily with "cat" and ">>" however, the problem is that I have to do it by taking into account the date (creation or modification) of the file.

If I simple use the cat command the output file will receive for example, all Fridays in a row, then all Saturdays, etc. and in that way I'm not considering the date.

I've searched for the options of the find command, since the files after creation are not modified...I try to use this for example:

$ find . -newer <some old file>

but that lists me all files after that <old file> and not by correct date.

View 5 Replies View Related

General :: List Of Directories In A File?

Apr 3, 2011

I have generated a list of directories that I would like to use ls and grep on, but it is not working. I am using the commandCode:cat directories.dat | xargs lsand I get a whole lot of these errors:Code:ls: cannot access ./foo/bar/baz/grault/*: No such file or directorybut when I try the directories manually one at a time I find that they all exist and all have files in them. Same thing if I try to grep anything. What is going wrong?

View 6 Replies View Related

General :: Extracting Latest Tar File From The List?

Jan 25, 2010

I have a bunch of tar files in a folder with the name in 'file_name.MMDDYYYY.HH.mm.SS.tar' format. I need to write a shell script that picks latest and greatest of the above tar files and extracts it to a particular folder

View 1 Replies View Related

General :: Samba File List Ordering?

Aug 20, 2009

I've published a samba share on a Ubuntu 8.10 server, and mounted the share on a windows box. For some strange reason the files are not sorted by file name (nor by any other sorting type) if I list them from the Windows command line (dir). I could always use the "dir /on" parameter, but I hope there's a way to make samba sort the files for me

View 4 Replies View Related

General :: Create Directories From A File List?

Jun 30, 2011

I am trying to write a script to pick the directory name from a list of file. Here is a detailed picture.Have a file name LIST which contains the follwing for example/apps/oracle/product/test1/apps/oracle/product/test2/apps/oracle/product/test3I need a script that reads these line from LIST and creates foldersin /apps/oracle/product/test1/backup/date/test1 after reading the first line
/backup/date/test2 after readin the second line/backup/date/test3 and so on.

View 15 Replies View Related







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