Search Results

Search: Posts Made By: nadeemrafikhan
2,404
Posted By nadeemrafikhan
Cut first value after underscore and replace first two digit with zero in perl
Like I have below string


XX_49154534_491553_201_122023_D
XX_49159042_491738_201_103901_D

and the expected output would be

0154534
0159042

XX and 49 can be dynamic.
1,682
Posted By nadeemrafikhan
Yes Don proposal also works !!
Yes Don proposal also works !!
1,682
Posted By nadeemrafikhan
Thanks everyone .. appreciate the help specially...
Thanks everyone .. appreciate the help specially Don.. finally i made it but this way..

dlt=$(awk '/PATTERN-LIST/,/\/PATTERN-LIST/' xmll | grep -v "PATTERN-LIST"|wc -l)
awk...
1,682
Posted By nadeemrafikhan
below is the Input file ...
below is the Input file


<BEAM-PATTERN-LIST>
<bean pattern>
<M>0.0,0.00</M>
<M>1.0,0.00</M>
<M>2.0,0.00</M>
<M>3.0,0.00</M>
<M>4.0,0.00</M>
<M>5.0,0.10</M>
<M>6.0,0.10</M>...
1,682
Posted By nadeemrafikhan
Apologies, I think i you missed or i didnt convey...
Apologies, I think i you missed or i didnt convey my message correctly .. I have one input file "input.xml" that contains the above text and it search the expression first and import to the...
1,682
Posted By nadeemrafikhan
Here is relevant information you asked. ...
Here is relevant information you asked.

What operating system are you using?
Linux 7

What shell are you using?
Bash

What have you tried to solve this problem on your own?

I tried some...
1,682
Posted By nadeemrafikhan
Break a file into smaller pieces with same search string
please help to break a file into smaller pieces with same search string and delete the matched lines.
like i have a below file

<expression>
some text
........
..........
</expression>...
5,295
Posted By nadeemrafikhan
Thanks Aia it is resolved now after disable the...
Thanks Aia it is resolved now after disable the selinux :)
5,295
Posted By nadeemrafikhan
Thanks , Let me verify
Thanks , Let me verify
5,295
Posted By nadeemrafikhan
Can't open nodes-6379.conf in order to acquire a lock: Permission denied
I am getting error on redis server on linux 7.5 after change the default path /var/lib/redis to /redisdata, and enable cluster-enabled yes. It would be really appreciate if some one can check and...
Forum: Programming 05-28-2018
2,682
Posted By nadeemrafikhan
Yes it is new server and setup i installed mysql...
Yes it is new server and setup i installed mysql ,PHP7.2 and apache on LINUX 7.3


[root@~]# php a.php
PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli.so' (tried:...
Forum: Programming 05-28-2018
2,682
Posted By nadeemrafikhan
Unable to connect mysql with php7 in Linux 7
I am getting below error on executing the code.
<
<?php

$dbname = 'upload_ui';
$dbuser = 'nad';
$dbpass = 'nad';
$dbhost = '10.196.84.192';

$link = mysqli_connect($dbhost, $dbuser,...
2,446
Posted By nadeemrafikhan
not exactly but something work thanks will come...
not exactly but something work thanks will come to u again :)
2,446
Posted By nadeemrafikhan
Unused ": value not completely converted" and round value issue
I am trying to convert decimal value of last two digit to round but fail.
I am using this method

awk '/HORIZONTAL/,/VERTICAL/' $1 | sed '1d;$d' | awk -F " " '{print $2}'| xargs printf '%1.1f\n'|...
3,411
Posted By nadeemrafikhan
Great .. It works..
Great .. It works..
3,411
Posted By nadeemrafikhan
I really appreciate !! will come back to u if...
I really appreciate !! will come back to u if required, hope u will be there :)

---------- Post updated 03-09-17 at 03:02 AM ---------- Previous update was 03-08-17 at 09:04 AM ----------

Hi...
3,411
Posted By nadeemrafikhan
Above logs i captured from /var/log/maillog..so...
Above logs i captured from /var/log/maillog..so mail logs is something different ?

---------- Post updated at 08:48 AM ---------- Previous update was at 08:42 AM ----------

could you please...
3,411
Posted By nadeemrafikhan
Thanks, I used below cli /usr/sbin/sendmail -f...
Thanks, I used below cli
/usr/sbin/sendmail -f username@domain.com username@domain.com

now logs has chnaged got status sent but didnt received mail.

Mar 8 12:21:17 Ak-Soot-ora...
3,411
Posted By nadeemrafikhan
I am really glad to see your help. I am using...
I am really glad to see your help.
I am using below command to send the mail from the server where postfix has been installed
echo "hi" | mail -s "test" username@xyz.com
and on the same server , I...
3,411
Posted By nadeemrafikhan
Got bounce report from /var/log/maillog. and...
Got bounce report from /var/log/maillog. and could you please let me know know to check valid address on this server. as I am new on mail server.
3,411
Posted By nadeemrafikhan
Thanks....Yes , I am using mail and sendmail...
Thanks....Yes , I am using mail and sendmail utility from CLI mode, and the logs , I am getting from /var/log/maillog.

I am in with root user and send the both mail from the same root user , one...
3,411
Posted By nadeemrafikhan
Thank !! but I can receive the email on gmail...
Thank !! but I can receive the email on gmail account but not company account from the same server.!!
3,411
Posted By nadeemrafikhan
Not able to send mail on my company's account but gmail in Linux 6.8
On Red Hat Enterprise Linux Server release 6.8.

I am to get the email from my LINUX box on gmail account but it fails on company domain.
getting status=sent for gmail. BUT

getting below error...
3,364
Posted By nadeemrafikhan
Thanks again Don , but still it pending :( let...
Thanks again Don , but still it pending :(
let me show you how I am doing it.
I have this data
0002178#
0001008(
0000886%
and I know what would be the overpunch character because i extract...
3,364
Posted By nadeemrafikhan
Great answer don !! but can u please tell how we...
Great answer don !! but can u please tell how we can pass variable one by one into this command instead of passing file.
Showing results 1 to 25 of 40

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