Search Results

Search: Posts Made By: gilgamesh
8,015
Posted By gilgamesh
tested on both Solaris & Redhat: SunOS...
tested on both Solaris & Redhat:

SunOS esmqst09 5.11 11.4.5.3.0 sun4v sparc sun4v

Linux esmqst13 3.10.0-957.21.3.el7.x86_64 #1 SMP Fri Jun 14 02:54:29 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux
8,015
Posted By gilgamesh
--killing backround Procs spawned from the parent script with Ctrl+C trap
Hello:

Am trying to understand why the method #2 works but method #1 does not.
For both methods, sending CTRL+C should kill both the Parent script & all of the spanwd background procs.

Method...
8,318
Posted By gilgamesh
So further to this discussion, would there be a...
So further to this discussion, would there be a way to delete one complete field ??
For example, if wanting to remove the DESCR() field.

From:


To:


Tried the sed command:


sed...
8,318
Posted By gilgamesh
Gonna try to understand the syntax better. ...
Gonna try to understand the syntax better.

Thank you ..
8,318
Posted By gilgamesh
one more question: How to get only the...
one more question:

How to get only the header strings:

From:


to:


Tried this but not working::

nawk -F"[)(]" '{for (i=2; i<=NF; i+=2) printf "%s ", $i; printf RS}' file


Thnx...
8,318
Posted By gilgamesh
Thats working .. Thank you !!
Thats working ..

Thank you !!
8,318
Posted By gilgamesh
--Parsing out strings for repeating delimiters for everyline
Hello:

I have some text output, on SunOS 5.11 platform using KSH:



I am trying to parse out each string within the () for each line.

I tried, as example:

perl -lanF"[()']" -e 'print...
4,569
Posted By gilgamesh
Thank you. Unfortunately, the sed/awk...
Thank you.

Unfortunately, the sed/awk commnands that work on other platforms
do not work on Solaris.

At least in the environments I work in.

Hence the work-arounds i had to use.
4,569
Posted By gilgamesh
Thank you for the prompt reply. But all...
Thank you for the prompt reply.
But all attempts using awk/nawk failed on Solaris.

Had to use the following perl code to get it working:

export CURR_DATE=$(TZ=GMT+24 date +%Y-%m-%d)
perl -ne...
4,569
Posted By gilgamesh
--SunOS 5.10 nawk for paragraph not working
The machine is using bash:
==================
bash -version
GNU bash, version 3.2.51(1)-release (i386-pc-solaris2.10)
Copyright (C) 2007 Free Software Foundation, Inc.
=========================...
Showing results 1 to 10 of 10

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