Search Results

Search: Posts Made By: racbern
Forum: Solaris 07-01-2009
4,154
Posted By racbern
Automate Solaris x86 Jumpstart
Hi All,

Is there a possible way to fully automate Solaris x86 jumpstart or make the x86 jumpstart unattended?

I'm currently checking the possible options on how can I do the x86 jumpstart to...
Forum: Solaris 06-10-2009
7,225
Posted By racbern
Logging Connections in Solaris
Hi All,

Is there a built in function/tool in Solaris that enables creation of a history file on any connection (via telnet, ssh, rsh or nfs) to Solaris machine?

I would like to create a script...
2,649
Posted By racbern
Hi, Trial and error on the earlier sed your...
Hi,

Trial and error on the earlier sed your provided, and it worked.

sed 's#^[^/]*/[^/]*/[^/]*/[^/]*/\([^/]*\).*#\1#' | sed 's/.daily//'

Can you explain how the above command (in blue font...
2,649
Posted By racbern
Hi vgersh99, The sed command works if there...
Hi vgersh99,

The sed command works if there is one ., but if there's two . on the folder name, it removes everything after .

How can I get the value of FOLDER_A.1?

echo 'hostname...
2,649
Posted By racbern
Help with Sed
Hi All,

Based from the following string, is there a way to parse the 4th value after the occurrence of / character?

For example:

"hostname...
1,437
Posted By racbern
help with Sed Command
Hi All,

I am trying to create a script using sed to search for a . and _ on a variable, and if it finds match, remove any value after a . or _.

For Example :

H.3 --> New Value...
17,534
Posted By racbern
Hi, Thanks guys for your help. ...
Hi,

Thanks guys for your help.

//racbern
17,534
Posted By racbern
Parse String Using Sed
Hi,

I am wondering if there's a simpler way to extract the second occurrence of a word enclosed in [ ] that matches my search criteria.

Sample Input is as follows:

[main] Error installing...
8,156
Posted By racbern
Hi again, The script doesnt work if the...
Hi again,

The script doesnt work if the pline is a blank line.

How can I add a validation inside the awk command to check if pline is blank line to get the line above the blank line instead?
...
8,156
Posted By racbern
Hi, If I tried to print out $pline outside...
Hi,

If I tried to print out $pline outside the awk command, its empty.

//racbern
8,156
Posted By racbern
Hi era, Thanks for reply as well. I...
Hi era,

Thanks for reply as well.
I added == 1 on your suggestion, and it worked fine as well.

awk '/EXECUTE/ { start = 1; continue }
/END/ { start = 0; continue }
start == 1 &&...
8,156
Posted By racbern
Hi aju kup, Thanks for your quick reply. ...
Hi aju kup,

Thanks for your quick reply.

Can you explain me the code as well please?


//racbern
8,156
Posted By racbern
Hi aju_kup, Thanks for your quick reply. ...
Hi aju_kup,

Thanks for your quick reply.

I tried your suggestion, and it only prints the lines with the patterns "Error|failed|error|warning". I need to get also the line above it.


I...
8,156
Posted By racbern
How to get lines in between Patterns?
Hi,

I need to create a script that does the following:

1. Read the file for the occurrences of "EXECUTE" and "END" strings.
There will be several occurrences of EXECUTE and END strings on...
1,533
Posted By racbern
Help with Sed Command
Hello,

I have an XML file that I need to search all occurence of "http://159.107.180.219/atoss/handler/bin/" and...
6,370
Posted By racbern
Parse String from a Variable
Hello,

Is there a quick way to parse the values from a variable?

The variable has the following sample input:
TA=[IV_Test PF_SAPP_FWK]

The values of the TA variable is not...
5,414
Posted By racbern
Unable to use sort command in Shell Script
Hello All,

I am creating a shell script that reads a file(test.txt) with the following data,

0.0.0.0
10.10.10.0
10.10.10.1
10.10.10.10
10.10.10.2
10.10.10.3
10.10.10.4
10.10.10.5...
12,712
Posted By racbern
SED Search Pattern and Replace with the Pattern
Hello All,

I have a string "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031", and I just want to extract LLSV1, but I dont get the expected result when using the sed command...
1,865
Posted By racbern
Is There a Sed Solution for This?
Hi All,

I'm trying to use sed to extract data within a String, but I'm having problems with sed command:

Text:
STATUS OSRC_R6_0_MENT_R1H_CU M_901662 R1H_LV1_20080313


Based from the...
21,658
Posted By racbern
How to include RETURN KEY with Background process "&" in Shell Script
Hello All,

I am a newbie in Shell script programming, and maybe you can help me with my query.

I need to write a shell script (mntServer.ksh) that will start a background process and also to...
Forum: Solaris 01-25-2008
30,162
Posted By racbern
How to mount a directory on another server?
Hi,

I have two solaris 10 servers, and I want a directory (test) in server A be accessible in server B.

I searched the web and the concept should be as follows:

Server A:
# share -F nfs...
56,480
Posted By racbern
Parse Line Using Sed
Hello All,

I am new to using sed, and I need to extract from the string data after : delimeter.

Can you help me please with the sed command?

Here's the input:
ipAddress: 10.20.10.11...
7,070
Posted By racbern
Hi Summer Cherry, I tried your suggestion...
Hi Summer Cherry,

I tried your suggestion and it worked..
Thanks a lot for your help.

Regards,
racbern
7,070
Posted By racbern
Parse String in XML file
Hello,

Has anyone got an idea how can I parse the above XML file by using shell script or perl?

Thanks in advance to all who will reply.

Thanks,
racbern
7,070
Posted By racbern
Parse String in XML file
Hello All,

I am new to this and I need to parse an XML file.

Here's the XML Input File:
<Report version="1.2">
<summary fatals="0" testcases="1" expected_fails="0" unexpected_passes="0"...
Showing results 1 to 25 of 26

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