Programming :: What Date Format DOES Work With "touch -d"?
Aug 2, 2010
I'm hardly keen on using (strictly, only or just) -t, --date=, -m -t, -c -m or -a -t, for all of which I'm clued in to their respective working date syntaxes, but if I must, I will. Frankly -d still boggles. I'd like to think there IS a correct format or formats, else why would they carry it forward in a coreutil command from (whenever it was first written) to the latest updates for the several distros?
Or is it so obvious I can't see the forest for the smell of the trees?
I 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
I am in the process of learning some scripting, however I am running into a roadblock in specifying a certain time format in the array. Ideally I would like to use Here are the lines of text that I am interrogating:
I have Fedora 15, with gnome and KDE core because I want to use Dolphin. The language of the OS is English so it shows dates in mm/dd/yyyy format. How can I get it to show dd/mm/yyyy or another format?
Is it possible to change the date format in Ubuntu 10.04 from the American mm/dd/yyyy to the British format of dd/mm/yyyy? I have looked at the Time/Date settings but cannot see any way of changing the date format
I set my location, but Debian displays DATE in some messed format. I would expect such neat OS to recognize all those local settings based on my location, but that's not the case. It seems that Debian follows locale settings by set language (which is en_us in my case, as I guess in majority uses) or this format is default in any case
I would like to set date/time to DD.MM.YY. hh:mm:ss, and programs that display date data to follow this setting. Simply put, in Windows there is Control Panel and you set location, then OS uses some regional settings, like currency, separators, date/time format.
For some reason, thunderbird uses some random order for the date elements, e.g. MM/DD/YY. I need to change it to YYYY/MM/DD but haven't found where! There is no option in TB to configure this so I guess it just picks some default from regional settings? Where do I need to go to set the date format to its logical form?
The date displayed in my panel is in the American format: Sat Jun 12, but my locale is set to Australian for everything. I have tried switching to different regions (System->Administration->Language Support), but this appears to have no effect on the date format.
In KWrite, you can make a datestamp and timestamp by pressing F7 for a command line and typing "date" therein. I just wondered: is it possible to change the stamp's date/time format, which is mm/dd/yy 24-hour time format? That's fine, but I wish the stamp could include the day of the week. (I use KWrite to keep a text-only personal journal. Any suggestions that I use a different program are welcome but are beside the point.)
I looked through the editor settings options, but found nothing relevant. The settings don't mention the F7 command line and the datestamp/timestamp at all; the only reason I know is because I once asked if there was a way to make one, as in Windows Notepad.
i want to know that how we can read date in format of 12/04/2010
in bash shell script
i mean , i want to read date form key board
i want that the user give input in the form of 12/04/2010 and then system varify that the entered date formate is correct or not. if it is valid , system will print echo " valid date" otherwise system will print echo "invalid date format"
I'm having an US American date format that drives me totally nuts, like MM/DD/YY. Today is 1/13/15. It seems to appear across the system (GNOME 3), from Skype to IceDove to Nautilus. So my hope is there is a central instance where I can change this. I would prefer to have 13-Jan-15 or 13-Jan-2015 or at the very least 13/01/2015, i.e. in some order consistent with my European brain.
Just updated to natty last night, still coming to grips with Unity, but the date format for Sydney Australia shows as Year-Month-Day instead of Day-Month-Year, tried changing it manually, but it just changes it's self back to what it was. Still coming to grips with the launcher, but do not like the black back ground used in the dash, would like to be able to change it. Would also like to make the icons in the launcher smaller than 32.
After installing Evolution, the date format for entering birthdays was MDY. I edited the preferences and see under contacts it was set to "Use locale default" (which it identifies correctly, but should therefore have been using DMY).
I changed the format to a preset item in the drop-down selection to force it to %d.%m.%y %H:%M:%S which didn't change the birthday field behaviour. Have done the same in Calendar and Tasks, still no change.
if/where you can change the date format for the Birthday field in contacts in Evolution?
I would really like to preserve a file's original modified date and pass it back to the file as the same attribute after a script has worked on it. I get a lot of JPEG files from different places on the Net which I either turn around and upload or burn to disk, and having the "original" date of either download or last mod in a graphics app would be for me, in the long run, a lot more helpful when deciding, for instance, which files to "recycle" or pass on backing up more than once.I've tried doing this on my own every now and then. Where I run into problems is that it appears "stat" and "date" use different formats for date information, and I can't seem to puzzle out how to "translate" one to the other satisfactorily for the latter command.
Just to give an example: stat foo.jpg |grep Modify gives me Modify: 2010-07-12 06:28:56.890625000 -0400
Passing that string as-is to date foo.jpg, I get the errordate: unknown option -- 0 and the usual semi-courteous suggestion to Try 'date --help' for more information.Somehow my TexInfo database got screwed up somewhere along the line and info dategives me the short article on date input formats, not the full documentation for the command
I just put a fresh install of Ubuntu 10.10 on my HP Pavilion dv9000, and everything seems to be running well except for my touchpad! When I boot up into Ubuntu, the mouse works at the log in screen, but the second I sign in, it stops.
A USB powered mouse works, but not the touchpad. I even booted up from a live USB to make sure that it's not a hardware problem, and it worked there. Is there any way I can fix this easily? I don't want to have to do a fresh install, because I put all of my files back on it again as well as installed a bunch of applications and programs.
I have checked and as of right now can not find any topic on my problem. I purchased and installed a usb touch screen for my EEE PC 900 4GB hard drive. My problem is that my computer will not recognize the screen. When I go into the Systems Test, The USB touch is recognized, but that is it. Do I have to download drivers? (Even for a usb?) I went into the bios, and enabled the web-cam, which I have used for power. (I think) If any one can offer me some advice, I will be forever grateful. I would love to have this up and running for my husbands birthday, which is in 2 weeks. Could the problem be with the size of the hard drive? I am 98% sure I have it installed correctly. I have followed the instructions that were supplied.
I just acquired a shiny new 64Gb iPod Touch and for the life of me I can't get it working in either Amarok or Banshee at all and it doesn't automatically mount as it is supposed to on 10.04 Beta 1 or 2
lsusb shows it's there and after following this thread I could get it mounted and see the directory structure.
But it doesn't show up in Banshee or Amarok at all.
Is it just because it's new and might have a quirk? Or could it be something simple I have missed? I'm not a total noob but still learning
I just recently switched to Ubuntu on my Acer Aspire 5630, and I'm having trouble with my touch pad. After typing, the cursor is unresponsive for a second or two. I tried looking elsewhere for solutions but getting no real headway.
I have currently installed Linux Mint 10 Gnome 32-bit edition and I have a iPod Touch 2nd gen with 32GB.I was able to see the music(mp3 files) in my iPod touch in linux mint 8 and 9. But currently I have the following issues:When I connect my iPod Touch with the system I got two popup asking me You have just inserted digital audio player.ose what applications to launch"ou have just inserted a medium with digital photos. Choose what applications to launch"I know that these are popups are normal. I currently dnot have any photos or videos in my iPod Touch(will try to add them in the future) so I used Rhythmbox to open the music present in my iPod touch. I'm able to find my iPod under "Devices" in Rhythmbox. But when I click it, Rhythmbox shows that there are no music present in my iPod Touch by showing "0 artist" and "0 Albums".
However I know for sure that there are definitely songs in my iPod since I'm able to browse and play songs directly from my iPod. Is there any way to resolve this? I have also tried opening it in banshee but with the same result.I tried to drag and drop songs present in my library of rhythmbox to my iPod and this does not do any thing. Previously in LM 8 or 9, when I do drag and drop I will be able to see my new songs in my iPod.