Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: bartus11
Forum: Shell Programming and Scripting Linux 03-19-2015
Replies: 2
Views: 717
Posted By bartus11
You dont need cat here. Also, use double quotes: ...

You dont need cat here. Also, use double quotes:
Search_String=100
Replace_String=151
sed "s|${Search_String}|${Replace_String}|g" ${work}/temp_${CSV_File} > $work/${work_1}/${CSV_File}
Forum: Shell Programming and Scripting Linux 02-14-2015
Replies: 7
Views: 1,074
Posted By bartus11
Try:perl -pe '$x=$1 if /^X (\S+)/;s/^X {6}/X ...

Try:perl -pe '$x=$1 if /^X (\S+)/;s/^X {6}/X $x/' file
Forum: Shell Programming and Scripting Linux 02-08-2015
Replies: 2
Views: 695
Posted By bartus11
Try: find . -name 22\* | while read old; do ...

Try:
find . -name 22\* | while read old; do
new=`echo $old | perl -nle '/_(\d+)_/&&print "ch$1"'`
mv $old $new
done
Forum: Solaris Linux 02-08-2015
Replies: 3
Views: 1,079
Posted By bartus11
Take a look at newtask. ...

Take a look at newtask.
(http://docs.oracle.com/cd/E26502_01/html/E29030/newtask-1.html)
Forum: Solaris Linux 02-01-2015
Replies: 14
Views: 4,955
Posted By bartus11
The system will only allow you to detach one disk...

The system will only allow you to detach one disk from that pool. If those are all the disks you can use, then there is no way to provide redundancy without destroying the pool and recreating it from...
Forum: Solaris Linux 02-01-2015
Replies: 14
Views: 4,955
Posted By bartus11
If adding more disks is possible, then you could...

If adding more disks is possible, then you could create mirrored vdevs, by attaching mirror disks to c3t5000CCA012B3E751d0 and c3t5000CCA012B39541d0. See manual for zpool attach command.
Forum: Solaris Linux 02-01-2015
Replies: 14
Views: 4,955
Posted By bartus11
Are those physical disks or LUNs exported from a...

Are those physical disks or LUNs exported from a storage array?
Forum: Solaris Linux 02-01-2015
Replies: 14
Views: 4,955
Posted By bartus11
Your setup still does not offer redundancy. If...

Your setup still does not offer redundancy. If c3t5000CCA012B3E751d0 or c3t5000CCA012B39541d0 fails, the whole pool will become unavailable.
Forum: Solaris Linux 01-06-2015
Replies: 11
Views: 1,750
Posted By bartus11
You still didn't tell us in which virtualization...

You still didn't tell us in which virtualization technique did you use to create your virtual machine (Solaris supports many of them).

We also need to know the exact steps performed by you when...
Forum: Solaris Linux 01-06-2015
Replies: 11
Views: 1,750
Posted By bartus11
How did you create the virtual machine? We need...

How did you create the virtual machine? We need exact steps.

Is it an LDOM or a zone or VirtualBox?
Forum: UNIX for Dummies Questions & Answers Linux 01-06-2015
Replies: 3
Views: 883
Posted By bartus11
What is the output of:uname -a echo $SHELL

What is the output of:uname -a
echo $SHELL
Forum: UNIX for Advanced & Expert Users Linux 11-23-2014
Replies: 4
Views: 704
Posted By bartus11
Create a new file in that directory, that will be...

Create a new file in that directory, that will be used as a lock file. Use flock - perldoc.perl.org (http://perldoc.perl.org/functions/flock.html) on that lock file in all three scripts. Use that...
Forum: UNIX for Dummies Questions & Answers Linux 11-17-2014
Replies: 2
Views: 741
Posted By bartus11
Try:echo "Enter INPUT:" read INPUT echo...

Try:echo "Enter INPUT:"
read INPUT
echo "Enter OUTPUT:"
read OUTPUT
cut -f1-4 $INPUT | sed 's/hello/goodbye/g' | sort -uV > $OUTPUT
Forum: Shell Programming and Scripting Linux 11-16-2014
Replies: 1
Views: 1,795
Posted By bartus11
When you run your code it says pretty clearly why...

When you run your code it says pretty clearly why it can't print the details for the second child node:
Not a HASH reference at ...Now, modify your code to print the contents of $FreemanFees using...
Forum: Shell Programming and Scripting Linux 11-10-2014
Replies: 6
Views: 857
Posted By bartus11
Take a look here: perlform - perldoc.perl.org...

Take a look here:
perlform - perldoc.perl.org (http://perldoc.perl.org/perlform.html)
Forum: Solaris Linux 11-09-2014
Replies: 5
Views: 973
Posted By bartus11
After you have read the link from my previous...

After you have read the link from my previous post, I would advice you to practise the patching on a lab system before trying to patch production server(s).
Forum: Solaris Linux 11-09-2014
Replies: 5
Views: 973
Posted By bartus11
I would advice against detaching the mirror disk....

I would advice against detaching the mirror disk. Instead you can use "lucreate" to create another boot environment that you can patch, while keeping the original boot environment intact. Take a look...
Forum: UNIX for Dummies Questions & Answers Linux 11-04-2014
Replies: 8
Views: 1,248
Posted By bartus11
Try:awk -F",? +" 'NR==FNR{x=$1;sub($1",...

Try:awk -F",? +" 'NR==FNR{x=$1;sub($1", *","",$0);a[x]=$0;next}{print $0" - "a[$1]}' ldap_jcon.txt over90.txt
Forum: Shell Programming and Scripting Linux 11-04-2014
Replies: 5
Views: 1,415
Posted By bartus11
You can also do something like this: ...

You can also do something like this:
#!/usr/bin/perl

use strict;
use warnings;
use diagnostics;

qx'sed -i "s/Hi Mom!\|Hi Dad!/Bye Everyone!/I" ./test.txt';

No more double backslash, but...
Forum: Shell Programming and Scripting Linux 10-30-2014
Replies: 5
Views: 1,415
Posted By bartus11
Try:#!/usr/bin/perl use strict; use...

Try:#!/usr/bin/perl

use strict;
use warnings;
use diagnostics;

`sed -i 's/Hi Mom!\\|Hi Dad!/Bye Everyone!/I' ./test.txt`;
Forum: Shell Programming and Scripting Linux 10-26-2014
Replies: 3
Views: 748
Posted By bartus11
Try:#!/bin/bash func_1(){ echo $1 } ...

Try:#!/bin/bash
func_1(){
echo $1
}

func_1 $1
Forum: Shell Programming and Scripting Linux 08-27-2014
Replies: 15
Views: 1,714
Posted By bartus11
Does it have to be sed?perl -0pe 's/2Z694//'...

Does it have to be sed?perl -0pe 's/2Z694//' file.xml
Forum: Shell Programming and Scripting Linux 08-26-2014
Replies: 3
Views: 955
Posted By bartus11
It basically replaces all occurences of 52...

It basically replaces all occurences of 52 consequtive spaces that are at the beginning of a line with a single space, while removing the newline character located right before those spaces.
Forum: Shell Programming and Scripting Linux 08-22-2014
Replies: 3
Views: 955
Posted By bartus11
Try:$ORACLE_HOME/OPatch/opatch lsinventory...

Try:$ORACLE_HOME/OPatch/opatch lsinventory -bugs_fixed | perl -p0e '$spaces=" " x 52;s/\n$spaces(\w)/ $1/g'
Forum: Hardware Linux 07-17-2014
Replies: 2
Views: 1,735
Posted By bartus11
As far as I know AMD CPUs have the same number of...

As far as I know AMD CPUs have the same number of threads as the number of cores. Intel CPUs have the HT technology, which exports more virtual CPUs to the operating system than the number of cores.
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 01:07 AM.