Search Results

Search: Posts Made By: pseudocoder
Forum: IP Networking 05-08-2010
13,387
Posted By pseudocoder
I wondered too. I assumed it's a two-port nic and...
I wondered too. I assumed it's a two-port nic and wondered why eth2 and not eth0 or eth1. Besides I looked at the support pages @ hp.com, namely the driver download section and I found the driver the...
2,675
Posted By pseudocoder
Corona688's answer is pretty right, but don't...
Corona688's answer is pretty right, but don't forget to chomp!
chomp removes the newline character from the end of line.
chomp($LINE);
the line input operator includes the newline at the
end of...
Forum: Solaris 02-10-2012
3,409
Posted By pseudocoder
Great! :b: ---------- Post updated at 21:48...
Great! :b:

---------- Post updated at 21:48 ---------- Previous update was at 21:39 ----------



wtf?! :confused:

If you intended to help me, be sure you didn't.

If you need help,...
Forum: Solaris 02-08-2012
15,317
Posted By pseudocoder
Hi. You obviously(!) run in a timeout. The reason...
Hi. You obviously(!) run in a timeout. The reason is because it takes far to long to download it.
When you enter the oracle.com site you submit some credentials and then you are allowed to perform...
Forum: Solaris 02-07-2012
15,317
Posted By pseudocoder
Does oracle really want us to download it ? ...
Does oracle really want us to download it ?

Nope, you can simply buy it :p...
15,995
Posted By pseudocoder
There are may ways to accomplish that. One...
There are may ways to accomplish that.

One way would be like frans already suggested, I fully agree with him.
One could also afterwards create a html with appropriate awk/sed commands from the...
2,109
Posted By pseudocoder
find . -name "example.xml" 2>/dev/null -exec grep...
find . -name "example.xml" 2>/dev/null -exec grep -l Version "{}" \;

Try this ^^, it will only print the filename, where the search string is being found.
If that works, try this command without...
6,914
Posted By pseudocoder
Also in Perl '>>' is used for appending stuff to...
Also in Perl '>>' is used for appending stuff to a file:
#!/usr/local/bin/perl

use strict;
use warnings;

my $line1='ABCDEFGH';
my $line2='09876543';

open(OUT,">>mydata.dat") or die...
1,199
Posted By pseudocoder
awk '$3=="=" && $5=="nm" {print}' infile Edit...
awk '$3=="=" && $5=="nm" {print}' infile
Edit (improvement):
awk '$1=="Column1" || $3=="=" && $5=="nm"' infile
Forum: IP Networking 07-06-2010
2,288
Posted By pseudocoder
Make sure you also adjust the entries in...
Make sure you also adjust the entries in /etc/hosts
3,397
Posted By pseudocoder
I'd first split the file after every 3 lines,...
I'd first split the file after every 3 lines, like so:
split -l3 file
In this case 2 files are produced: xaa xab

for i in x*; do
awk 'NR == 1 { l1=$0 }
NR == 2 { l2=$0 }
NR == 3 {...
3,681
Posted By pseudocoder
Maybe awk '/^alter table/ {print $3}' file >...
Maybe
awk '/^alter table/ {print $3}' file > table.names
:confused:
1,486
Posted By pseudocoder
while read line; do echo "$line" | grep "^$"...
while read line; do
echo "$line" | grep "^$" >/dev/null 2>&1 && (echo; echo) || echo -n $line
done <file ; echo
<span class="time"><strong>06:00</strong></span>

<div class="cDesc"...
3,007
Posted By pseudocoder
find . -type f -name "*.doc" | while read fn; do ...
find . -type f -name "*.doc" | while read fn; do
mv -v "$fn" "$(echo $fn | sed 's/\.doc$/\.txt/')"
done
2,086
Posted By pseudocoder
perl -ne '{push @x, $_}END{pop(@x); print @x}'...
perl -ne '{push @x, $_}END{pop(@x); print @x}' file1
5,482
Posted By pseudocoder
$ echo 'abc,xyz.com,lmhgdf,"abc, 401...
$ echo 'abc,xyz.com,lmhgdf,"abc, 401 street","tty,stt",45,23,45' | \
sed 's/"[^"]*"//g' | grep -o , | wc -l
7
$
2,143
Posted By pseudocoder
while read pattern; do grep "^$pattern [0-9]"...
while read pattern; do
grep "^$pattern [0-9]" file1
done <file2
2,738
Posted By pseudocoder
egrep '>|^[A-Z][A-Z][A-Z]$' infile
egrep '>|^[A-Z][A-Z][A-Z]$' infile
1,961
Posted By pseudocoder
$ sed '/^DEFINITION/,/^ORIGIN/d' input | sed...
$ sed '/^DEFINITION/,/^ORIGIN/d' input | sed '/LOCUS /s//>/' | awk '/^>/{print $1} NR>1'
>NM_013964
1 gcgcctgcct ccaacctgcg ggcgggaggt gggtggctgc ggggcaattg aaaaagagcc
61 ggcgaggagt tccccgaaac...
9,095
Posted By pseudocoder
Hope you mean this type of splitting... ...
Hope you mean this type of splitting...
#!/usr/local/bin/perl

use strict;
use warnings;

my $infile='file.txt';
my $count=1;
my $outfile="$infile-section_$count.txt";
my @arr;

sub...
1,985
Posted By pseudocoder
If the identifier won't get longer than 32 chars...
If the identifier won't get longer than 32 chars you could try this:
cut -c1-32 file
Forum: HP-UX 06-19-2010
3,623
Posted By pseudocoder
Try fstyp(1M)...
Try fstyp(1M) (http://docs.hp.com/en/B3921-90010/fstyp.1M.html)
10,189
Posted By pseudocoder
Maybe this? $ perl -nle 'if ($a == 0) { push...
Maybe this?
$ perl -nle 'if ($a == 0) { push @x, $_; $a=1; next; }
if ($a == 1 && length($_) >=11 && length($_) <= 17)
{ print @x; print $_; $a=0; @x=(); }
...
7,405
Posted By pseudocoder
Did you get any error message? Can you please...
Did you get any error message?
Can you please double check that you have correctly copy/pasted my latest posting (incl. some changes that I had to do right after I've posted that).
6,681
Posted By pseudocoder
$ cat abc.dat a,b,C-D-E,f,g h,i,J,k,l ...
$ cat abc.dat
a,b,C-D-E,f,g
h,i,J,k,l
m,n,O-P-Q-R-S,t,u
v,w,X-Y,z,a
$ perl -ane '@x=split(/,/,$_); @y=split(/-/,$x[2]);
foreach $char (@y) { print "$x[0],$x[1],$char,$x[3],$x[4]"; }' abc.dat...
Showing results 1 to 25 of 79

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