Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: kaaliakahn
Forum: Cybersecurity 04-02-2013
3,677
Posted By DukeNuke2
some service/application must be responsible for...
some service/application must be responsible for the connection. try to stop the services (i would start with smbd/nmbd) one by one and check again...
Forum: Hardware 03-08-2013
4,568
Posted By Amous
I should recommend that first of all you should...
I should recommend that first of all you should check your all hardware like power supply, MOBO or processors issue. After it you should check your BIOS. I am confident that it's work.
Forum: UNIX and Linux Applications 03-05-2013
2,287
Posted By Corona688
Moved thread hijack to here...
Moved thread hijack to here (https://www.unix.com/unix-dummies-questions-answers/217361-online-unix-educational-materials.html).
Forum: Hardware 12-07-2012
4,568
Posted By Corona688
Considering AMD processors have their memory...
Considering AMD processors have their memory controllers built into them, it could easily be the CPU.

Unfortunately, it could easily be lots of other things too; hard to be certain without...
Forum: UNIX and Linux Applications 09-20-2012
2,287
Posted By OGPartition
Dont know much about booting from external HD or...
Dont know much about booting from external HD or if your computer will even allow it. You probably want to try installing/booting from a USB drive to test the OS out. There are instructions on their...
Forum: UNIX and Linux Applications 09-20-2012
2,287
Posted By Corona688
This is usually an option, yes. You can also...
This is usually an option, yes.

You can also download images for things called livecd's, which boot a complete UNIX system from CDROM without having to install anything on your hard drive. They...
Forum: UNIX and Linux Applications 09-19-2012
2,287
Posted By OGPartition
1. There are many linux distros for many...
1. There are many linux distros for many purposes; as always your usually recommended to try em out and see which one your the most comfortable with/ is more fitting for your needs. Take BSD...
Forum: UNIX and Linux Applications 09-19-2012
2,287
Posted By Corona688
Linux is the 5-megabyte file that loads when you...
Linux is the 5-megabyte file that loads when you push the power button on the computer. Everything else, everything else, is whatever software your distribution decided to bundle with this...
2,808
Posted By Corona688
Usually, there is no need to run them on specific...
Usually, there is no need to run them on specific cores. Just run them simultaneously and they'll use time on whatever CPU is available and the OS deems appropriate. It will do multiprocessing...
1,167
Posted By itkamaraj
try this... $ awk...
try this...


$ awk '{if($0~/^[0-9]*$/){a+=$0;c++}if(c>=10){print a;a=c=0}if($0!~/^[0-9]*$/){if(a!=0 && c<10){print a"\n"$0;a=0}else{print}}}' input.txt
abc
def
ghi
55
36
kjld
random...
1,167
Posted By bmk
Let me know ,what desired output you want?
Let me know ,what desired output you want?
2,178
Posted By Scrutinizer
awk '/[^0-9]/{if(s)print s; s=0; print; next}...
awk '/[^0-9]/{if(s)print s; s=0; print; next} {s+=$1} END{if(s)print s}' infile
2,178
Posted By bartus11
Try: awk '!/^[0-9]+$/&&p{print...
Try: awk '!/^[0-9]+$/&&p{print s;s=0;p=0};!/^[0-9]+$/;/^[0-9]+$/,/^[0-9]+$/{s+=$0;p=1}' file
1,549
Posted By Scrutinizer
That's right... sed -n 'N;/^0\n/p;/^1011\n/p'...
That's right...
sed -n 'N;/^0\n/p;/^1011\n/p' infile
1,549
Posted By Corona688
awk 'NR%2 { L=$0; next }; (L=="0")||(L=="1011") {...
awk 'NR%2 { L=$0; next }; (L=="0")||(L=="1011") { print L; print }' datafile
1,549
Posted By Scrutinizer
Try: sed -n '/^0$/{N;};/^1011$/{N;};/\n/p'...
Try:
sed -n '/^0$/{N;};/^1011$/{N;};/\n/p' infile
1,549
Posted By Corona688
awk 'NR%2 { L=$0; next }; L=="0" { print L; print...
awk 'NR%2 { L=$0; next }; L=="0" { print L; print }' datafile
1,549
Posted By Corona688
How could you possibly get two zeroes printed...
How could you possibly get two zeroes printed then, when that should only cause the one on an even line to be printed?
1,549
Posted By Corona688
What do you mean by 'odd lines'? One of those...
What do you mean by 'odd lines'? One of those 0's comes from an even line(line #2).
4,271
Posted By biomix
Here ya go: date --date=$TIME" +1 hour"...
Here ya go:

date --date=$TIME" +1 hour" +%H:%M
4,655
Posted By Corona688
If it's just freezing, make sure keywords.txt is...
If it's just freezing, make sure keywords.txt is in the same directory you run the command in.
4,655
Posted By Corona688
$ cat module.awk BEGIN { # Load...
$ cat module.awk

BEGIN {
# Load the list of keywords
while(getline <"keywords.txt") ARR[++C]=$1
}

# Only run this codeblock when not printing.
!P {
for(N in ARR)
...
6,281
Posted By Corona688
Why do this in multiple passes? Why not do it in...
Why do this in multiple passes? Why not do it in one pass? Do you want different output to appear in different files?

---------- Post updated at 10:18 AM ---------- Previous update was at 10:16...
25,976
Posted By Corona688
awk 'BEGIN { FS="\t"; OFS="\t"; }; NR==1 {...
awk 'BEGIN { FS="\t"; OFS="\t"; }; NR==1 { for(N=1; N<=NF; N++) $N="MC_" $N; }; 1' It will run the loop only for the first line. But the "; 1" should cause it to print all lines.
25,976
Posted By LMHmedchem
Thanks, that worked fine. Another quick...
Thanks, that worked fine.

Another quick question, is there an easy way to append something like "MC_" to every field on the first line?


fieldName1 fieldName2 fieldName3

MC_fieldName1...
Showing results 1 to 25 of 30

 

Featured Tech Videos

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