Search Results

Search: Posts Made By: thegeek
Forum: What is on Your Mind? 02-02-2012
1,439
Posted By Neo
6,964
Posted By jlliagre
Assuming you have GNU date available: $ s=$((...
Assuming you have GNU date available:
$ s=$(( $(date -d "Jul 13 01:02:01" +%s) - $(date -d "Jul 12 16:02:01" +%s) ))
$ printf "%02d:%02d:%02d\n" $((s/3600)) $((s%3600/60)) $((s%60))
09:00:00
Forum: Programming 07-17-2011
2,997
Posted By bartus11
It can be done, but it is not pretty...
It can be done, but it is not pretty :)$ip=~/\b((2[0-5][0-5]\.)|(1?[0-9]?[0-9]\.)){3}((2[0-5][0-5])|(1?[0-9]?[0-9]))\b/
2,508
Posted By Corona688
Let's break it down bit by bit. find /...
Let's break it down bit by bit.



find / # Search inside /
-path /proc -prune # Ignore anything inside /proc
-o -path /new-disk -prune # OR ignore...
Forum: What is on Your Mind? 03-14-2011
19,502
Posted By Neo
Please Donate to the Red Cross for Earthquake and Tsunami Relief in Japan
Dear Forum Members,

The UNIX and Linux Forums are working directly with the Red Cross to provide ad banners on our site to support Earthquake and Tsunami Relief in Japan. Registered users do not...
1,645
Posted By rdcwayx
awk '{print >$2%2".dat"}' infile you will...
awk '{print >$2%2".dat"}' infile

you will get 2 files: 0.dat (even number) and 1.dat (odd number)
Forum: Linux 09-27-2010
4,132
Posted By pludi
The swap space is used also used for system...
The swap space is used also used for system hibernation, and the resume line tells the kernel where to look for the hibernation signature and to load the old RAM contents from.
1,374
Posted By radoulov
It's because the shell redirection happens before...
It's because the shell redirection happens before all the rest. You can put it wherever you like:

% >infile echo ok
% cat infile
ok
% echo >infile ok
% cat infile
ok
Forum: What is on Your Mind? 08-14-2010
3,202
Posted By Corona688
There's a large amount of overlap between C and...
There's a large amount of overlap between C and C++; learning C++ without learning any C would be very tricky. Strangely, and often disastrously, this is the way it is frequently taught anyway. ...
1,986
Posted By anbu23
ls -l | cut -c1 | sort | uniq -c
ls -l | cut -c1 | sort | uniq -c
6,680
Posted By pludi
Basically, a soft link is a special kind of file...
Basically, a soft link is a special kind of file that points to a different file somewhere on the available (mounted) filesystems. A hard link is a regular file entry in a directory, only that it...
Forum: Solaris 07-22-2010
12,100
Posted By jlliagre
That's a pure semantic issue. What the "swap -s"...
That's a pure semantic issue. What the "swap -s" command reports are accurate virtual memory statistics. "Total swap space" has always been used to describe the whole virtual memory under Solaris so...
4,258
Posted By overmindxp
How to handle files in use during Tar?
How you do usually deal with files in use during a backup?
Is there a option to let TAR skip opened files?
Or notify me an opened file is tar'ed?

What's the best practice?

Thanks
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy