LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

'stat' vs 'date' w/re string manipulation in Bash scripts

Posted 11-17-2011 at 05:31 PM by SilversleevesX
Updated 11-17-2011 at 05:42 PM by SilversleevesX

I started browsing the Web tonight looking to do something I had been doing in my Bash scripts with stat and three more lines of string cutting in one line instead.

I had been using stat -c &y file to get a file's modification date in scripts, but I have never liked the nine-digit "blink-of-an-eye" part of the return on that command. My method up till now has been to eliminate it with lines like these:
Code:
gdate=$(stat -c %y foo.jpg)
pqdate=$(echo ${gdate%.*})
...
Member
Posted in Discussion
Views 417 Comments 0 SilversleevesX is offline
Old

using dfsbuild to build a debian from scratch

Posted 11-17-2011 at 09:19 AM by adriankevin

I want to create my own debian distribution using dfsbuild (v 1.0.2.0) but i got the error:

Project:/home/adrian# dfsbuild -c /etc/dfsbuild/dfs.cfg -w /home/adrian/dfs/
[dfs/INFO] Welcome to dfsbuild. Image architecture: "i386"
[dfs/INFO] Using working directory /home/adrian/dfs
[dfs/INFO] Using library directory /usr/lib/dfsbuild
[dfs/INFO] Running.
[dfs/INFO] Mirroring process starting.
[dfs/INFO] Running cdebootstrap for testing...
LQ Newbie
Posted in Uncategorized
Views 377 Comments 0 adriankevin is offline
Old

Hello!

Posted 11-16-2011 at 07:08 AM by kbscores

This is my first blog entry! Going to introduce myself and explain a little bit about what I am going to blog about.

As of right now I am a junior sys admin at a medium sized datacenter. I primarily work with RHEL, so the bulk of my blogs will be in reference to that operating system. I have been here for about six months and have learned a lot.

About one month ago the only other Linux SA left and that forced me to learn fast. Even though there are several other...
Member
Posted in Uncategorized
Views 269 Comments 0 kbscores is offline
Old

installation

Posted 11-16-2011 at 01:18 AM by wakchaure
Updated 11-16-2011 at 03:22 AM by wakchaure

how to install tora which is similar to toad used for pl/sql development on fedora 15 for oracle
LQ Newbie
Posted in Uncategorized
Views 383 Comments 0 wakchaure is offline
Old

Object oriented programming - Objects and Classes [C++]

Posted 11-15-2011 at 03:02 AM by TheIndependentAquarius
Updated 06-12-2013 at 12:31 PM by TheIndependentAquarius

Object oriented programming is all about representing the parts of
the problem statements as `objects` and having them interact with
each other (by calling function(s) of the object in question).

Every object has a type. The type of an object is often called a
`class` in object oriented programming. The class contains the list
of characteristics of the object and the functions which the object
is capable of performing.
We can have many...
Senior Member
Posted in C++, The basics
Views 1489 Comments 1 TheIndependentAquarius is offline

  



All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration