Software :: Adjust Timestamps Within A Log File?

Jun 25, 2011

I do have a log file where each line start with a timestamp:

"2011-04-30 23:58",....
"2011-04-30 23:59",....

My question is how I can alter this timestamp to e.g subtract 6 hours by using a bash script.

View 5 Replies


ADVERTISEMENT

General :: How To Search Logs Between Two Timestamps In Log File?

Nov 19, 2009

The requirement was to write a shell script for a cron job set for every two hours for all days.The Script has to scan log files (*.log) for the logs posted only for the last two hours.... and append them in a new file...I am clueless abt how to scan/compare based on time stamp seen in above logs.

View 2 Replies View Related

Ubuntu :: Preserving File Timestamps On NTFS Partitions

Apr 5, 2010

I'm using two NTFS formatted partitions. One is internal and holds all my data. The other is on an external hard disk and is where I back up all my data to. What I'd like to do is copy all my files from the data partition to the backup partition and preserve all the windows' timestamps (including the file creation dates).How hard can this be? Well it appears that in the case of Ubuntu the answer is very hard indeed.I'm aware that Linux does not support the concept of a file creation date natively. However, according to the ntfs-3g website, all of the windows' timestamps (including the creation date) are mapped on to the system.ntfs_times extended attribute (link). So if you preserve the extended attributes when making a copy then, in theory at least, the timestamps should also be preserved.

I read on another forum that a file's timestamps will be listed (albeit in an unreadable hex format) if you run the following command:getfattr -h -e hex -n system.ntfs_times <filename>Unfortunately however, I just cannot get it to work. With every file I've tried I simply get a message saying "no such attribute".

View 9 Replies View Related

Ubuntu :: Adjust .po File Using Gettext / Poeditor?

Jul 13, 2010

I have a .po and .mo file. I need to add several lines . I would like to edit the .po file. With Poedit I do not seem to be able to add lines to the .po file. I believe I need the .pot file for this. How can I create a .pot file from a .po file so I can adjust details and create the .po and .mo anew?

View 3 Replies View Related

General :: What Is Tpurpose Of Preserving Timestamps?

Mar 31, 2011

I could understand the idea of security "if I haven't touched the file in 9 days, and the timestamp was changed, I know someone was in my system". But, is there any other purpose for preserving timestamps?

View 3 Replies View Related

Software :: Syslog Output With Timestamps And Documentation

Jan 3, 2011

1) is it possible to have dmesg output (syslog) with timestamps for each occurrence of the boot log?

2) where to find documentation/advice about which kernel functions yield each occurrence?

View 1 Replies View Related

Ubuntu Security :: Encfs: Preserve Timestamps On A Shared Encrypted Folder?

Mar 2, 2010

[URL]

encfs: preserve timestamps on a shared encrypted folder?

View 1 Replies View Related

Ubuntu Servers :: Preserving Timestamps And Permissions When Copying To Samba-share

May 5, 2010

My samba-shares are mounted in fstab. Everything works fine except for one small issue: when copying files from the local PC to the share the files are copied but the timestamps and permissions of the files are not. Instead a message "operation not permitted" appears. 'root' on the client can copy files WITH timestamp etc, a normal user cannot.

Below the line in fstab on the client and smb.conf on the server.

View 3 Replies View Related

Fedora :: Can't Adjust CPU Frequency?

Dec 9, 2009

I just update the system, and the cpu frequency applet stop working. I can no longer lock the cpu frequency. Once I click the cpu applet icon, The whole applet just freeze right there. Does not matter if what I do with it. Well, at least I hope some one just offer me a bit help on how to lock the cpu frequency in terminal. Other wise I can not run Folding@home due to cooling issue.

Post added at 05:08 AM CST Previous post was Yesterday at 11:58 PM CST Well, it seems like the program take of authentication is mess up. I have the same problem when I tried to config my firewall. In the Firewall case, once I type in my password, the whole window just went blank. For the cpu applet case, nothing happen, the window ask for password does not show up. nothing. The system log did not have any entry...neither does the crash log. Which there are lot of entry there since I install F12

View 6 Replies View Related

Ubuntu :: Can't Adjust Resolution In 10.04

Jun 11, 2010

I have just did a fresh install of Ubuntu 10.04 to a computer with a generic, low end, on board graphics card. It will not allow me to change the resolution to something other than 800x600 or lower. 8.04 allowed me to set the resolution to as high as 1600x1200 using the same monitor/graphics card.

View 4 Replies View Related

Ubuntu :: How To Adjust Brightness

Jul 31, 2011

I just recently installed Xubuntu 11.04 and I want to adjust the brightness levels. I tried using the corresponding buttons on my laptop, but they aren't working. Where can I find the brightness settings on the OS?

I tried this thread: [URL] , but "Power Manager" didn't have that setting.

View 4 Replies View Related

Fedora :: Adjust Sound Of Each Speaker?

Dec 12, 2009

i have a 5.1 setup ...

in fedora 10 things were pretty simpler . all i had to do was double click the volume icon and i could change the volume of each of my speakers individually ...

in fedora 11 that was not possible , this adjustment of volume had become more complicated, however there was this "advanced volume control" or something ... i dont quite remember its name , but thanks to that i could still adjust volume of each of my speakers individually ...

in fedora 12 i m not able to find that application - "advanced volume control" ... how do i adjust the volume of my each of my 5.1 speakers in fedora 12 ?

View 2 Replies View Related

Fedora :: Adjust Screen Brightness

Mar 13, 2011

Running F14 on Dell Studio 14 with LCD screen and US keyboard selected. After initial power on the keyboard selection of "Windows Key" + F4 will dim the screen and the "Windows Key" + F5 will brighten the screen. When being used, either combination will also show a meter on the screen to display the adjustment of the brightness. When the lid is closed the computer is set to suspend by default. After the computer is brought back from suspend the keyboard short cuts no longer control the brightness and the meter does not appear on the screen. I have not found any other way to control the brightness and I have to restart to get the keyboard short cuts to work again.

View 5 Replies View Related

OpenSUSE :: How To Adjust CD Mounting Behavior

Feb 19, 2010

Under Suse 11.1 & KDE 3.5, when a CD was inserted, the disk was automatically mounted at /media/cd-label. With 11.2 & KDE 4, I get a pop-up from the task bar, from which I must select the CD, and then select the Open With File Manager option. Then (and only then) is the CD mounted at /media/cd-label.Is there a setting that I can change that will eliminate the requirement for all the mouse clicks and just have a CD automatically

View 9 Replies View Related

OpenSUSE :: Adjust The Brightness In Gnome?

Oct 4, 2010

How do I adjust the brightness in Gnome?

View 9 Replies View Related

Ubuntu :: Cannot Adjust Screen Brightness V 10.04

Jun 3, 2010

I cannot adjust the screen brightness in the power management menu. I can access the window and move the scroll bar, but there is no change.

I am on v 10.04 32bit , a Benq joybook s35.

It was working just fine on the previous version of ubuntu.

View 7 Replies View Related

Ubuntu :: Adjust Volumes On A Per-app Basis?

Aug 16, 2010

I know many apps have their own independent volume controls, but not all do. Is there any way to control this in a similar manner as Windows 7?

View 4 Replies View Related

Ubuntu :: Adjust Screen Resolution?

Oct 28, 2010

On last boot it was fine but now it is showing 800X600 which is too low . How to adjust it

View 9 Replies View Related

Ubuntu :: Adjust Date And Time In 10.10?

Dec 5, 2010

If one right-clicks on the date and time tab in Ubuntu 10.10 desktop, then there is no obvious way to change the time. If one right-clicks and goes to help, then the explanation for changing time is as follows under the category 'usage':

2.3. To Adjust the System Date or Time.

To adjust the system date or time that the Clock applet displays, perform the following steps:

1. Right-click on the applet, then choose Adjust Date & Time.

2. Type the root password, then click OK.

3. The Clock applet starts the system tool that sets the system date and time. Use the tool to adjust the date and time.

The actual way to do this is as follows:

Right-click on the date and time applet. select preferences, and down at the bottom of the window that opens push the 'time settings' button.

Then you will be able to adjust that date and time.

View 3 Replies View Related

Ubuntu :: Can't Find Where To Adjust Sensitivity

Apr 3, 2011

I'm having trouble with my mouse wheel. On one click, it pulls down to the halfway point. This leaves me with either dragging the bar around on the right hand side, or using the touch pad. this is a new (to me) notebook, which I haven't had for long. I just can't find where to adjust the sensitivity.

View 1 Replies View Related

Ubuntu :: Adjust Size Of Partition

May 6, 2011

Does anyone know of a way I can adjust the size of a partition in KDE down to the exact size of the files on it so there is no blank space?

View 4 Replies View Related

Ubuntu :: Can't Adjust Screen Brightness

Jun 23, 2011

My computer (Samsung R580 N330M)seems doesnot adjust brightness both power manager and configuration file in /proc, I tried NVIDIA setting and it works,but I think it changes the color,not LCD. is it caused by driver problems?

View 3 Replies View Related

General :: How To Adjust Sources.list

May 13, 2009

Debian 5.0

On running;

$ cat /etc/apt/sources.list
Code:
deb http://http.us.debian.org/debian lenny main contrib
deb-src http://http.us.debian.org/debian lenny main contrib

[Code].....

E: Some index files failed to download, they have been ignored, or old ones used instead. how to adjust sources.list

View 3 Replies View Related

Ubuntu :: Can't Adjust Display Brightness

May 28, 2010

Ubuntu 10.04 lucid with gnome-power-manager installed on a HP elitebook 8530p. FN keys and desktop display applet will not adjust the display. when I first boot my display is pretty bright with either it plugged into ac or not until i either plug or unplug for the first time then the display dims some, but will not get bright again plugged or unplugged, also /proc/acpi/video/DGFX/LCD/brightness shows it set to 100% at all times it never changes. I'm using the ati driver tried running aticonfig --acpi-services off, but it made no difference. It worked fine in karmic and ibex. I'm out of ideas on how to fix this one. Can anyone point me in the right direction on what to try next?

View 5 Replies View Related

Fedora :: How To Adjust Properties In Panel

Mar 10, 2011

I just installed Fedora and had what appeared to be 2 panels showing so clicked on one 2 hide it, now I can't see anything on the other panel. If I move my mouse over the panel I see:
my name
the date

A note pad which disappears when I move the mouse over it and thats it. Sometimes when I point my mouse at them they disappear as well. How can I get my panel back? I thought maybe adding an application to the desktop to open a terminal session would be a good way to start, but i don't know where or what the command is for this. (I did mange to set one up so I could start Firefox). If I Open a terminal session then what do I do to get my panel back ?

View 7 Replies View Related

Hardware :: Adjust Bass On Headphones?

Feb 26, 2011

i've recently bought a new set of headphones, since the ones i had were really cheap and only lasted for like 3 months, now i have new ones, not really that good but not as cheap as the old ones xD anyway I've noticed this ones have more bass, therefore the sound is low, is there a way i can adjust this? i know the bass is from the headphones because they sound the same on my window$ machine

View 1 Replies View Related

General :: Can't Adjust Screen Resolution?

May 30, 2010

Have just installed my frist linux os and the screen has a big black border around it. Set the res on install to 1024x768 & this is displayed in display settings. If I run xrandr in a shell tool it only shows 640x480 available.xorg.conf has "1024x768" "800x600" & "640x480" available.Have search the web but nothing I've found works.

View 14 Replies View Related

General :: How To Adjust Clock In Ubuntu

Mar 3, 2010

I want to adjust clock in ubuntu. When I installed it it asked about location and setting if for asia it automatically take the clock, but that timing is not correct. It showed 10 pm when actually it was 5pm. After installation I tried it to adjust but it could not be managed..it automatically took that previous timing.

View 4 Replies View Related

General :: Unable To Adjust The Output

May 25, 2011

i m running a command

Code:

watch -n 1 -d netstat -i

to see the packet drops every 1 second. but the problem is the output is so long(Due to large number of virtual interfaces) it doesn't fit into the putty prompt. I dont need to monitor each and every network interface I m more interested in monitoring the interfaces starting from vif but whenever i run following command it doesnt display anything.

Code:

watch -n 3 -d netstat -i | grep vif*

What should i do?

View 7 Replies View Related

General :: Any Way To Adjust Screen Brightness

Nov 12, 2010

I have a low end 7" CnMBook running modified Debian OS. Is there any way to adjust the screen brightness, if possible by adding a Fn command Up and Down?

View 4 Replies View Related







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