Ubuntu :: Name Of The Package For Date Command?
Aug 6, 2011What is the name of the package for "/bin/date" command. need to re-install
how can I determine that a spesific file belongs to which package?
using ubuntu 10.04 64bit
What is the name of the package for "/bin/date" command. need to re-install
how can I determine that a spesific file belongs to which package?
using ubuntu 10.04 64bit
I would like to write a shell script that displays the number of days, hours and seconds left until a certain date and time. What commands would I use?
View 6 Replies View RelatedHow to use the date command to display, for example, 10-Mar-2010 01:01:53? What's the format string?
View 2 Replies View RelatedI am trying to use the date command in a simple bash script as below:
#!/bin/sh
this_date=`date`
echo "The date is $this_date"
This script seems to work only if a surround the command with the `` characters, which I copied from another script. Can anyone tell me why this is, and how I can insert these characters from my keyboard,which only has normal quote and double-quote characters?
I would appreciate help with how to extract the date and time from at command jobs. From what I can tell, the date and time is embedded in the file name (/var/spool/atjobs).I'd be using this information in a (bash) shell script.
View 14 Replies View RelatedI need to pipe the output of date command, to form a command like this:
mycommand -f 20110721
where 20110721 is current YearMonthDay.
I'm writing a script that takes the date attribute of a file when it was created and appending it to the name. I'm pretty close to what I need, but the date appears in yyyy-mm-dd format and I want it to read mm-dd-yyyy. What I have done so far is something like
for ((i=1;i<=50;i++));
do fdate=`stat -c %y Video Snapshot $i.png|awk {'print$1'}`;
newname=Personname-$fdate-$i.png;
mv Video Snapshot $i.png $newname;
done
This works decently but the date comes out in the yyyy-mm-dd format. How do I change it?
I am doing some NSCA log parsing and I want to get an output like this:
2011-Feb-18:11:00:07
2011-Feb-18:11:00:07
2011-Feb-18:11:00:07
2011-Feb-18:11:00:08
2011-Feb-18:11:00:08
[Code]....
I have tried this, but it treats the entire output as a single line, then plops a timestamp on the end (I think):
Code:
sort -b -k4.9,4.12 -k4.5b,4.7Mb -k4.2,4.3 -k4.14,4 foo.log| date -j -f "%Y-%b-%d:%T" "+%s" "`awk -F '[ [/:]' '{print $7"-"$6"-"$5":"$8":"$9":"$10}'`"
I am doing some NSCA log parsing and I want to get an output like this:
2011-Feb-18:11:00:07
2011-Feb-18:11:00:07
2011-Feb-18:11:00:07
[code]...
i need to add the date of the root of the command prompt line, i can get it show to the date for any user how do i just do it for root? and i added it to the .bash_profile file
export PS1='[`date +%D` u@h W]$ '
what is the tool to get the history inclduing the user name,command time and from which file/folder the command is executed.
View 1 Replies View RelatedHow can format the date command to output the following format 08-Dec-2010.
View 3 Replies View RelatedI am trying to watch a command and try to log it into a file. I tried
watch -t -n 10 "(date '+TIME:%H:%M:%S'
; ps aux | grep "pattern" | wc -l)" >>
logfile
and am expecting a result like
TIME: 10:32:30 12
TIME: 10:32:40 18
TIME: 10:32:50 2
to be stored in logfile. However, when the logfile has unprintable characters in in. How do I get this kind of output from the command li
I want to know the command, so that i can move back two days i.e. all the changes i made during the two day is rolled back .
View 5 Replies View RelatedI'm trying to find a proper command to move a certain set of files according to date/time range. I am thinking that the command should be something like:
Code:
ls -l | grep 'date/time range' | mv /folder
I'm looking for a method for modifying some jpg photo files last modification date with the corresponding timestamp creation date of each file.The reason is that shotwell import pictures in folders according to last modification date which is stupid on my opinion.
View 2 Replies View RelatedAs a photographer I'm constantly taking photos and storing them in folders. Now occasionally I'm using two cameras (either for different settings or an assistant is also taking photos) which means that for one event I can have differently named images.Both cameras have the same time set (which always helps in Windows) but in Ubuntu when trying to sort my folder by date taken I can't.The options I'm given are to sort them: Manually, by Name, by Size, by Type, by Modification date and by Emblem.Now none of those are helpful to me once I've done a few edits to the images.So please if anyone knows, how do you organise a folder with images taken on different cameras by Date Taken rather than Date Edited?
View 3 Replies View RelatedI am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name
View 5 Replies View RelatedAnyone have a ksh solution to convert julian date to gregorian date?
View 6 Replies View Relatedhow to download the dep package with apt command?
View 1 Replies View RelatedI've only been using Linux for a few days (Specifically - I installed Ubuntu 9.10 last week on my laptop for learning the OS and updated to 10.04 over the weekend). I have searched Google (and found answers) for every problem now except for this new one. I apologise in advance for the length but I wanted to include my own troubleshooting as well.
When I installed and setup Ubuntu Karmic - I added my work software. Autopackage wasn't installed by default so I used terminal's package install <filename> command for the first file - and double clicked on the rest to install.With the OS change I wanted to check to see if these packages would have problems installing on 10.04 (mostly to double check).First I checked my Manage 3rd Party Software to remove them - but all my entries here are blank. (I should have quite a few actually - I've done a lot of installing and downloading in the last few days).I double clicked to re-run them but that failed saying there was a problem with the packages. So I swapped to Terminal and found the following:
When I try to install a software package:
sudo package install "SMART Product Drivers 10.package"
Reply: package: can't open config file /home/test/.mailagent
If I type in just
[code].....
What's interesting, is checking my Fedora and Debian builds (I've done a lot of learning for only a few days! But I know a ton about grub 1 and 2 now) - I can't see a /home/test/.mailagent file or folder to copy either. The only thing I can think of is I have never setup an email account on my system (I've only been using it for a few days) and maybe the blank Manage 3rd Party Software tab is indicating a different problem.
After sifting through numerous apt-get apt-cache apt-file tutorials I still can't find a command to check if a package is installed via the terminal command/line.
I know there must be some way to do it.
Say I want to check if any package from the libavcodec*.deb family is installed how could I do this without a gui eg synaptic?
I have installed a package via command line via following command
sudo apt-get install ubuntu-restricted-extras
How I can remove this package ? what is the command ?
I have to install filezilla, I've got this file
FileZilla_3.5.0_x86_64-linux-gnu.tar.bz2
Opening it I see all the files and the folders where to put those files, but I guess there is a command to unpack it directly in the correct folders.
What is the rpm command to tell me what rpm package contains libtiff.so.4
View 5 Replies View RelatedI have the suspicion that the latest gdm update (2.28.1-0ubuntu2.2) broke something because the login screen isn't displayed anymore on my desktop. My question is the following:How can I revert an update or force a package version via command line? It's pretty straight forward via Synaptic but I only have access to the recovery command line so that is not really an option.
View 1 Replies View RelatedI just switched from a basic digital camera to a more advanced one that stores both Jpeg and Raw (.Nef - it's a Nikon) files for me.When importing files in Digikam, I rename the files so that they start with Date and Time. Example: 20110121-223748.JPG for a photo taken on Jan 21st 2011 at 22:37:48.I was a bit surprised when importing both the JPEG and the Raw version of the same photo, that the filename is different by a few seconds (no constant offset, sometimes they are the same):
20110121-223748.JPG
20110121-223750.NEF
I did some "research" by looking at the exif data of both files (using "exiftool 20110121-223748.JPG" from the command line). Here is what I got back
(amongst other data):20110121-223748.JPG
File Modification Date/Time : 2011:01:21 22:37:48+01:00
Modify Date : 2011:01:21 22:37:48
Date/Time Original : 2011:01:21 22:37:48
[code]....
So it seems that Digikam is using the "File Modification Date/Time" (different in the Jpeg's and Raw's of my camera) rather than the "Create Date" (the same for both Jpeg and Raw). (The few seconds difference in "File Modification Date/Time" between the two versions of the same photo is probably due to the time that my camera needs to write away the data on the SD memory card. I guess.) Is there a way to have Digikam use the Create Date? (Or the Date/Time Original?)
PS: I'm on Ubuntu 10.04LTS, using DigiKam 1.2.0
Please tell me the command to install the pstricks package which is being used by TexLive.
View 2 Replies View RelatedIs it zypper in <package> or zypper up <package> or both?
View 4 Replies View RelatedI want to unpack tar.gz package. Where should I locate the package I want to unpack?
View 3 Replies View Related