Search Results

Search: Posts Made By: samask
Forum: Solaris 04-27-2018
2,925
Posted By Peasant
This is mostly used for monster servers such as...
This is mostly used for monster servers such as t5-8 or t7-4, if at all.

Corner cases include regulatory/security demands, where such separation can enable you to run test and production on the...
Forum: Solaris 05-12-2018
2,400
Posted By hicksd8
Wow, that does sound weird. My initial...
Wow, that does sound weird.

My initial questions are:
1. Are all the non-global zones Solaris 10? Or are there branded zones too?
2. Are the non-global zones whole root or sparse root?
3. Are...
Forum: Solaris 05-10-2018
10,590
Posted By hicksd8
Why are you unsure about the integrity of the...
Why are you unsure about the integrity of the flash archive? What makes you think that there may be a problem?

If you really want to test, take a copy of the archive and then try and split it. ...
Forum: Solaris 05-09-2018
10,590
Posted By hicksd8
So if this other server has enough disk space to...
So if this other server has enough disk space to store the capacity of the four production servers, why don't you configure a NFS share (or 4 NFS shares) on it and backup each of them over the...
Forum: Solaris 04-08-2018
1,993
Posted By Linusolaradm1
A little help with ipfilter on Omnios
I'm on OmniOS.
I have set a linux zone(lx zone) wich use 10.2.0.0/24 network.
The other network,connected to internet is 192.168.0.0/24
The network interface of 10.2.0.0/24 is bge1
The network...
2,461
Posted By Scrutinizer
Nice to hear you can appreciate awk's elegance. I...
Nice to hear you can appreciate awk's elegance. I am not aware of a restriction whereby colons would not allowed in file names in OS X, but if you would like to use a dash, try:
awk...
2,461
Posted By Scrutinizer
Hi, try: awk '/\* Chapter/{close(f); p=x;...
Hi, try:

awk '/\* Chapter/{close(f); p=x; f=x} /CITE-KEY/{f=tolower($2) ".txt"; $0=p$0 } !f{p=p $0 ORS} f{print >f}' file
2,307
Posted By ahmad.diab
you can do below if interested with one liner:- ...
you can do below if interested with one liner:-

perl -07 -wlpe 's/(.*)\s+~+/## $1/s ;' infile.txt

:D:D:D
2,307
Posted By birei
Hi samask, Some issues: 1.- while (<>)...
Hi samask,

Some issues:

1.- while (<>) reads one line at a time and your regex tries to work over multiple lines.
2.- '^' marks the beginning of the line and it is zero-width, put it out of...
6,192
Posted By radoulov
Sure, I'll try. The code is: awk 'END...
Sure,
I'll try.

The code is:

awk 'END {
for (i = 0; ++i <= idx;)
printf "%s\n\n", p[i]
if (p[i - 1] != r)
print r
}
/\$newpage/ {
sub(/\n\n*$/, x, r)
t[r]++ ||...
6,192
Posted By binlib
Yes, we like challenges. If you have gawk, you...
Yes, we like challenges. If you have gawk, you can do:
gawk '_ != (_ = $0)' RS='\n*\\$newpage\n*|\n$' ORS='\n\n' infile
6,192
Posted By radoulov
OK, try this: awk 'END { for (i = 0; ++i...
OK, try this:

awk 'END {
for (i = 0; ++i <= idx;)
printf "%s\n\n", p[i]
if (p[i - 1] != r)
print r
}
/\$newpage/ {
sub(/\n\n*$/, x, r)
t[r]++ || p[++idx] = r
r...
6,192
Posted By radoulov
This should handle multiple trailing newlines...
This should handle multiple trailing newlines (the multiple leading newlines should be already OK):

awk 'END {
for (i = 0; ++i <= idx;)
printf "%s\n", p[i]
if (p[i - 1] != r)
print...
6,192
Posted By radoulov
awk 'END { for (i = 0; ++i <= idx;) ...
awk 'END {
for (i = 0; ++i <= idx;)
printf "%s\n", p[i]
}
/\$newpage/ {
t[r]++ || p[++idx] = r
r = x; next
}
{
r = r ? r RS $0 : $0
}' infile

Edit: The above...
3,310
Posted By radoulov
Good point @ygemici, the second grouping is...
Good point @ygemici,
the second grouping is unnecessary:

sed '/^ASX.\{16\}0\{7\}/!s/^\(.\{19\}\).\{7\}\(.\{77\}00[12].*\)/\10000000\2/' infileYour code will do some redundant substitutions...
3,310
Posted By radoulov
sed ' ...
sed '
/^ASX..000/!s/^\(.\{5\}\)\(...\)\(..[12].*\)/\1000\3/
' infile
Showing results 1 to 16 of 16

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