Search Results

Search: Posts Made By: bartus11
2,440
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}
3,838
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
1,739
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 02-08-2015
3,946
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 02-01-2015
13,209
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 02-01-2015
13,209
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 02-01-2015
13,209
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 02-01-2015
13,209
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 01-06-2015
6,025
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 01-06-2015
6,025
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?
6,300
Posted By bartus11
What is the output of:uname -a echo $SHELL
What is the output of:uname -a
echo $SHELL
2,045
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...
2,255
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
6,819
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...
2,430
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 11-09-2014
3,377
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 11-09-2014
3,377
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...
3,245
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
4,879
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...
4,879
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`;
2,393
Posted By bartus11
Try:#!/bin/bash func_1(){ echo $1 } ...
Try:#!/bin/bash
func_1(){
echo $1
}

func_1 $1
7,357
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
2,703
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.
2,703
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 07-17-2014
3,841
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 02:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy