Search Results

Search: Posts Made By: nezabudka
142
Posted By nezabudka
Hi sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
Hi
sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
551
Posted By nezabudka
And where did you get the CONDITION variable in...
And where did you get the CONDITION variable in "awk"?

--- Post updated at 21:59 ---

Is a colon needed here?

maybe
{ if(strcondition(COND))print COND"|"$147"|"$15"|"$16"|"$17"|"$4}
189
Posted By nezabudka
here is opposites \K grep -ioP...
here is opposites \K
grep -ioP 'project\D+(?=\d+\.([\d,a-z]+\.){1,}[\d,a-z]+|\d+\.[\d,a-z]+|\d+)'
maybe means forget all follows matches?

--- Post updated at 18:18 ---

exactly means forget...
189
Posted By nezabudka
Hi It's a bit redundant option -i applies to...
Hi
It's a bit redundant
option -i applies to the whole template
grep -ioP 'project\D+\K(\d+\.([\d,a-z]+\.){1,}[\d,a-z]+|\d+\.[\d,a-z]+|\d+)'
if you want to limit it is better so
grep -oP...
Forum: Shell Programming and Scripting 2 Weeks Ago
451
Posted By nezabudka
Hi no pipe needed sed '/inlineifset/,/^...
Hi
no pipe needed
sed '/inlineifset/,/^ *$/!d; s/@inlineifset{mrg, @opar{@bullet{} @//' $flnm
Forum: Shell Programming and Scripting 2 Weeks Ago
519
Posted By nezabudka
Hi Any open file in "vim" generates a "swap"...
Hi
Any open file in "vim" generates a "swap" file. This is of course a band-aid
ex -rnes +wq /tmp/.xxx0000.txt.swp

--- Post updated at 12:00 ---

So it will be more correct
ex -rns +wq...
590
Posted By nezabudka
LESS=+/"^\s*RS\s" man awk RS The...
LESS=+/"^\s*RS\s" man awk
RS The input record separator, by default a newline.
...
it was RS='\n' has become RS='<'
this can be imagined as if in the text the character '<' is...
590
Posted By nezabudka
Hi try this awk -F '>' '/^SeriesName/ {print...
Hi
try this
awk -F '>' '/^SeriesName/ {print $2}' RS='<' file
Forum: Shell Programming and Scripting 3 Weeks Ago
240
Posted By nezabudka
It’s interesting that on "zsh" it works
It’s interesting that on "zsh" it works
Forum: Shell Programming and Scripting 3 Weeks Ago
240
Posted By nezabudka
This is how it will be without "eval" $( :...
This is how it will be without "eval"
$( : ${path%/*} && echo ${_##*/} )
that would be without "echo" :)
Forum: Shell Programming and Scripting 3 Weeks Ago
240
Posted By nezabudka
Hi @wisecracker I think this is the same...
Hi @wisecracker
I think this is the same option. Change a little and it will be quite practical
: ${path%/*} && echo ${_##*/}
but it’s just not convenient to pass this parameter on
Forum: Shell Programming and Scripting 3 Weeks Ago
240
Posted By nezabudka
Hi try this basename $(dirname...
Hi
try this
basename $(dirname /var/talend/nat/cdc)

--- Post updated at 11:33 ---

basename ${path%/*}

--- Post updated at 11:51 ---

Here is a solution I finded completely not practical...
Forum: Shell Programming and Scripting 3 Weeks Ago
240
Posted By nezabudka
love things like that echo $(expr match "$path"...
love things like that
echo $(expr match "$path" '.*/\([^/]*\)/[^/]*')
Forum: Shell Programming and Scripting 4 Weeks Ago
688
Posted By nezabudka
Hi You can use the -V option sort -V or...
Hi
You can use the -V option
sort -V
or even sort right away in a file
vim -nes +'%!sort -V' +wq file
323
Posted By nezabudka
Hi enca output.txt 7bit ASCII characters ...
Hi
enca output.txt
7bit ASCII characters
Mixed line terminators
Does that bother you?
Forum: What is on Your Mind? 4 Weeks Ago
1,052
Posted By nezabudka
One cannot help joining such sincere...
One cannot help joining such sincere congratulations especially from Neo, read in one breath.

I congratulate you Victor and Ravinder from the bottom of my heart and
I hope that you will not be...
674
Posted By nezabudka
It should work the same way on both the "bash"...
It should work the same way on both the "bash" and the "ksh93"
cat file
tom is hot
one two three
four five six
set -A store
#declare -A store
eval "store=($(awk '{for(i=1;i<=NF;i++) print "["...
674
Posted By nezabudka
associative array declare -A store eval read...
associative array
declare -A store
eval read store[{$(fmt -1 $filename | paste -sd,)}] < <(seq -s' ' $(wc -w <$filename))
echo ${store[@]}
echo ${!store[@]}

--- Post updated at 10:19 ---
...
816
Posted By nezabudka
Hi Maybe this will help? ss -t -o state...
Hi
Maybe this will help?
ss -t -o state established

--- Post updated at 16:07 ---

ss -t -o state connected
ss -t -o state synchronized
767
Posted By nezabudka
Hi As I understand it a linux "pstree" My...
Hi
As I understand it a linux "pstree"
My five cents.
It comes with a built-in pager
systemd-cgls
Another option
ps xawf -eo pid,user,cgroup,args
1,054
Posted By nezabudka
join -12 -22 -o 1.1,2.1 et.tst itid.tst | while...
join -12 -22 -o 1.1,2.1 et.tst itid.tst |
while read a b; do
db2 -x "select DOCID from ICMADMIN.$a where ITEMID='$b'"
done
Reread I fixed the code
1,054
Posted By nezabudka
Well, I can absolutely accurately reproduce ...
Well, I can absolutely accurately reproduce
eval echo -ne "db2' '-x' \"'select' 'DOCID' 'from' 'ICMADMIN.{$(paste -sd, et.tst)}' where ITEMID='\'{$(paste -sd, itid.tst)}\''\"\n'"
db2 -x "select...
1,054
Posted By nezabudka
eval echo -ne "db2' '-x' \"'select' 'DOCID'...
eval echo -ne "db2' '-x' \"'select' 'DOCID' 'from' \"'ICMADMIN.{$(paste -sd, ITEMID.txt)}'\" where ITEMID=\"'{$(paste -sd, et.txt)}'\n'" | bash

--- Post updated at 14:07 ---

Another variant...
1,054
Posted By nezabudka
The thing is that the files do not consist of a...
The thing is that the files do not consist of a list as stated, but of the lines!

--- Post updated at 13:37 ---

it is very easy to solve
eval echo -ne "echo' '-x' \"'select' 'DOCID' 'from'...
881
Posted By nezabudka
We are confused. As I understand it, all this is...
We are confused. As I understand it, all this is superfluous.
You just need to include the config in start of the script and that's it.
. $1
After this expression, your config will virtually be...
Showing results 1 to 25 of 170

 

Featured Tech Videos

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