Search Results

Search: Posts Made By: RudiC
161
Posted By RudiC
Looks like /tmp/nx_inst/nx100/ug_inst aborts and...
Looks like /tmp/nx_inst/nx100/ug_inst aborts and dumps core, when it is called as "$1" in line 40. Does it run correctly on its own?
233
Posted By RudiC
Try \| for the alternation ... but don't forget...
Try \| for the alternation ... but don't forget to escape the parentheses as well.


EDIT: Hoppla - that seems to be GNU as well ...
167
Posted By RudiC
What will a "difference" be to you? Just files...
What will a "difference" be to you? Just files missing, i.e. different directory contents? Or files with different meta data, i.e. size and/or timestamp? Or do you need to byte compare every single...
181
Posted By RudiC
Why that difficult? Try awk ' BEGIN { FS =...
Why that difficult? Try
awk '
BEGIN { FS = OFS = "|" }

/^TESR/ {TESR[++CNTTESR] = $0}
/^RGSS/ {RGSS[++CNTRGSS] = $0}
/^FNMR/ {FNMR[++CNTFNMR] = $0}
/^STPE/ {STPE[++CNTSTPE] = $0}
/^GX../...
232
Posted By RudiC
How about TMP=csvtxt ...
How about
TMP=csvtxt # extension template
while read filename
do IFS="._" read -A IARR <<< $filename ...
270
Posted By RudiC
Just for the fun of it - how far would this get...
Just for the fun of it - how far would this get you:
FL=$(wc -l < inputfile)
while read
do case $REPLY in
[tT]*) CMD="NR>$((FL - ${REPLY:1}))";;
[pP]*) ...
265
Posted By RudiC
Does: grep -v " [01] *[+-]" file chr10 ...
Does:
grep -v " [01] *[+-]" file
chr10 152763 152818 NB551726:5:H2HT5BGXC:1:11101:11832:4136 21 +
chr10 270718 270779 NB551726:5:H2HT5BGXC:1:21302:6151:20084 36 +...
265
Posted By RudiC
Try grep -v " [01] *[+-]" file
Try
grep -v " [01] *[+-]" file
284
Posted By RudiC
Yes. You did it twice with arr1 and arr2. It can...
Yes. You did it twice with arr1 and arr2. It can vary from shell to shell, so it's best to always post your OS and shell.





Don't unset IFS - reset it to its former (saved!?) value.
229
Posted By RudiC
That's EXACTLY the point - you CAN'T "forget...
That's EXACTLY the point - you CAN'T "forget missing ... {}". You HAVE to "take care about the {} syntax" as they support / convey the logics. action n in an if construct is a - one or multiple...
284
Posted By RudiC
Again: DIFF is a scalar NOT an array the way you...
Again: DIFF is a scalar NOT an array the way you create / populate it. There is NO ${DIFF[1]}!


Wouldn't it be better to show the big picture of your problem, so a tailored solution can be found?...
213
Posted By RudiC
Look for the "mydb..." lines, then. See if there...
Look for the "mydb..." lines, then. See if there are any abnormalities. Post a small but relevant excerpt of the output.
284
Posted By RudiC
$DIFF in not an array but a scalar variable. ...
$DIFF in not an array but a scalar variable.
Try also
IFS=$'\n'
echo "${array1
}"$'\n'"${array2
}" | sort | uniq -u
Mac meDon't forget to reset IFS to your default value.
229
Posted By RudiC
Not clear. The result you present is exactly what...
Not clear. The result you present is exactly what one would expect once your code has been rearranged like

awk -v a="$ROW_ID_TO_SEARCH" '
{if ($1 == a) if ($2 == "") printf ("ID_NULL...
264
Posted By RudiC
So you succeeded, calling backup_run $1? And your...
So you succeeded, calling backup_run $1? And your next step would be backup_run $2, then? How about for looping across all positional parameters, using $@ as proposed by stomp?
264
Posted By RudiC
What exactly do you want to achieve that above...
What exactly do you want to achieve that above doesn't deliver? What problems do you run into? Errors? Messages?
213
Posted By RudiC
My guess is you have some string that sorts...
My guess is you have some string that sorts between "dispatchers" and "event", separated from "mydb" by a carriage return (<CR> = \r = 0x0D = ^M) character. string can be told to include all white...
308
Posted By RudiC
The trivial answer that can be read (almost)...
The trivial answer that can be read (almost) everywhere: in a safe place. But, that's not as trivial as it reads. While you can - during creation - have the backup archive on a local disk /...
1,585
Posted By RudiC
How about (untested) sed 's/^.*"title": "//;...
How about (untested)
sed 's/^.*"title": "//; s/",.*$//'?
287
Posted By RudiC
Did you consider the comm utility: comm <(sort...
Did you consider the comm utility:
comm <(sort file1) <(sort file2)
DATABASE1
DATABASE2
DATABASE3
DATABASE4
DATABASE5
DATABASE6
148
Posted By RudiC
Partly. Nobody is talking of a "file name". sed...
Partly. Nobody is talking of a "file name". sed reads stdin line by line, and in each line ALL characters except one (for my sed: the last) string matching the RE are deleted. The g flag is...
609
Posted By RudiC
This might work: awk "/zypper_local/ && /60/ &&...
This might work:
awk "/zypper_local/ && /60/ && /${ZYPPER_LOCAL_REP//\//\\/}/" file; or try (given the order of the substring is as given):

grep "zypper_local.*60.*$ZYPPER_LOCAL_REP" file

...
567
Posted By RudiC
Try also awk -F, 'FNR==NR {T[$0]; next} {for (t...
Try also
awk -F, 'FNR==NR {T[$0]; next} {for (t in T) if (t ~ $1) print t, $0}' OFS=, file[12]
abc12345,abc1,text1,texta
abc12345,abc,text2,textb
def12345,def123,text3,textc...
323
Posted By RudiC
Where is the $var_Host info to be found? ---...
Where is the $var_Host info to be found?

--- Post updated at 17:39 ---

Assuming / inferring you mixed up var_Host and var_Name, how far would this:

awk -F, '
{sub (/var_/, "", $1)
...
290
Posted By RudiC
I don't think that can be done with csplit. Try...
I don't think that can be done with csplit. Try this little awk script instead:
awk -vPID=$$ '
NR == 1 ||
/CLK00027/ {if (FN) printf RS > FN
FN = sprintf ("xx%04d.%s.txt",...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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