Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: figaro
Forum: Programming 01-03-2019
1,817
Posted By durden_tyler
First of all - thank you very much for providing...
First of all - thank you very much for providing the CREATE TABLE and INSERT statements. Those really help!
If you have MySQL version < 8.0.2, then you could find the previous level by joining the...
2,370
Posted By sea
The || represents an unconditional else of an if...
The || represents an unconditional else of an if block.
Use OR instead.

Anyhow.. in your case i'd suggest a case block..
ext=h
case $ext in
cpp|h|js) echo "Do this" ;;
ph|php|lua) echo "Do...
Forum: What is on Your Mind? 10-23-2013
2,788
Posted By alister
Your histrionic lead-in to a post bereft of...
Your histrionic lead-in to a post bereft of concrete examples suggests that, instead of a genuine technical discussion, your primary goal is the promotion of your automation product. The fact that...
3,283
Posted By RudiC
You've been close! Try sed '/NEW/{1d;$d}' file
You've been close! Try sed '/NEW/{1d;$d}' file
6,012
Posted By RudiC
Well, try this one series of statements "...
Well, try this one series of statements " with double spaces" in between // some comments here
sed -r 's/([[:alnum:]]) +([[:alnum:]])/\1 \2/g' file
series of statements " with...
6,012
Posted By Scrutinizer
Not a regular expression, nor with sed: awk ' ...
Not a regular expression, nor with sed:
awk '
{
for(i=1; i<=NF; i+=2) {
n=split($i,F,"//")
while(match(F[1],/[^ ] +[^ ]/)) F[1]=substr(F[1],1,RSTART) " " substr(F[1],RSTART+RLENGTH-1)...
6,012
Posted By RudiC
First attemptsed -r 's/([[:alnum:]]) ...
First attemptsed -r 's/([[:alnum:]]) ([[:alnum:]])/\1 \2/' file
series of statements " with double spaces" in between // some comments here
(Doesn't work between double quotes.)
Forum: Infrastructure Monitoring 08-09-2013
9,395
Posted By Smiling Dragon
"Load average" in top is actually the run queue...
"Load average" in top is actually the run queue average length.
Over 1 means on average things are waiting on the cpu, below 1 means on average no-one has to wait. Don't confuse this with %cpu -...
Forum: IP Networking 08-05-2013
1,700
Posted By DGPickett
Ports are fields in UDP and TCP packet headers...
Ports are fields in UDP and TCP packet headers that allow the flow to be divided on a host to 65K different apps. For instance tcp cpnnections could be made from 63K different apps on one host to...
Forum: What is on Your Mind? 07-02-2013
6,792
Posted By alister
The hallmarks of Web 2.0 are (1) rounded corners...
The hallmarks of Web 2.0 are (1) rounded corners and (2) web apps which can modify a web page's contents without modifying the browser's history (so you cannot bookmark where you are or share a...
749
Posted By balajesuri
seq 0 25 100000You may do this too, but it's...
seq 0 25 100000You may do this too, but it's gonna take a while:
i=0; while [ $i -le 100000 ]; do echo $i; i=`expr $i + 25`; done
Forum: Debian 02-16-2013
3,656
Posted By love_debian
The Debian Administrator's Handbook
Hi, would like to share a complete reference about Debian GNU/Linux.
TBH, i've never seen a complete reference book like this one here ...
...
Forum: Filesystems, Disks and Memory 05-16-2007
30,528
Posted By Shell_Life
igidttam, See if this works for you: du -a...
igidttam,
See if this works for you:

du -a | sort -nr | head -50
Forum: Web Development 03-25-2013
1,438
Posted By hanson44
I personally feel that CSS frameworks are a bad...
I personally feel that CSS frameworks are a bad idea.

If you stick with regular CSS, you are using the lowest common denominator and will be 100% compatible with anyone, can go anywhere. With the...
Forum: Programming 02-04-2013
5,831
Posted By Corona688
Why this is needed in C goes to the heart of how...
Why this is needed in C goes to the heart of how C compiles and links.

Including <stdio.h> tells the compiler that "somewhere, there exists a function named fgets, which takes arguments of char *,...
1,489
Posted By Scrutinizer
You would need to properly quote the characters...
You would need to properly quote the characters on the command line and put double quotes around variable references inside the script..

$ cat script
echo "$3"
$ ./script foo bar '!@#.:;_'\'\" ...
6,055
Posted By Neo
The new code detection algorithm is not live...
The new code detection algorithm is not live yet... so it would not influence anything.
6,055
Posted By Corona688
Dropping the font button would be a great relief.
Dropping the font button would be a great relief.
Forum: BSD 10-25-2012
10,322
Posted By DGPickett
The mtab is usually /etc/mtab. The device is a c...
The mtab is usually /etc/mtab. The device is a c character not a b raw device. If there is no parallel raw device, it may be that the USB is being mounted raw as a character device, not through a...
Forum: Hardware 09-01-2012
2,799
Posted By ijiboom
Well, we actually got a good handbook for the...
Well, we actually got a good handbook for the included OS and are getting it up and running right now, so no need to switch... But thanks a lot anyway!
Forum: High Performance Computing 05-21-2012
5,788
Posted By otheus
"Understanding" isn't so important. At the end of...
"Understanding" isn't so important. At the end of the results, there is a number labeled "GLOPS". It looks like this:

WR00L2C2 8192 16 1 1 327.60 1.119e+00
...
1,496
Posted By methyl
Further to post #5 , you'd need to read the file...
Further to post #5 , you'd need to read the file line-by-line, then sort the contents of the line. Also lose the "-s" switch to "tr".

cat filename.txt | while read line
do
sorted=`echo...
Forum: What is on Your Mind? 06-22-2012
2,232
Posted By kduffin
The real advantage to learning assembly language...
The real advantage to learning assembly language is a low-level understanding of pointers and memory handling. You'll have a better understanding of the real operation and cost versus someone who...
Forum: Programming 12-29-2011
3,140
Posted By JohnGraham
Yes, this is a feature of both C and C++ - array...
Yes, this is a feature of both C and C++ - array names automatically decay into pointers where appropriate. When passing an array to a function, the array is never placed on the stack (how would the...
1,574
Posted By DukeNuke2
try "edit" -> "go advanced" and you should be...
try "edit" -> "go advanced" and you should be able to change the tilte of your posts!
Showing results 1 to 25 of 91

 

Featured Tech Videos

All times are GMT -4. The time now is 07:59 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy