Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name



'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:
gdate=$(stat -c %y foo.jpg)
pqdate=$(echo ${gdate%.*})
Posted in Discussion
Views 433 Comments 0 SilversleevesX is offline

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 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 396 Comments 0 adriankevin is offline


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...
Posted in Uncategorized
Views 274 Comments 0 kbscores is offline


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 387 Comments 0 wakchaure is offline

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 1511 Comments 1 TheIndependentAquarius is offline


All times are GMT -5. The time now is 01:34 PM.

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