Search Results

Search: Posts Made By: sadique.manzar
1,866
Posted By sadique.manzar
Perl programming issue
Dears,

I want to print filename and count of each file in perl but failing to implement.

`find $srcFolder -maxdepth 1 -type f -name "*$workDate*$fileExt" -exec sh -c '[ -f "$0" ] && printf...
2,255
Posted By sadique.manzar
Try this : #!/bin/sh cd...
Try this :

#!/bin/sh
cd /mt/ttlog/avccomn/logs/201901/19
e=
for (( i = 5; i >= 0; i-- )) ; do
e='-e /'`date +\%R -d "-$i min"`'/p '$e
done

$(sed -n $e startjmsnode1.sh_03.out > newfile)
3,210
Posted By sadique.manzar
Dear, Please try below : awk -F '[\t]' -v...
Dear,
Please try below :

awk -F '[\t]' -v a="0" -v b="10" ' NR>a {if (NF != b ) print NR"@"NF }' test.txt
1,950
Posted By sadique.manzar
it was running on crontab and get know about it...
it was running on crontab and get know about it after 10 days, as the log file last access was. when investigated found the ssh connection refused. My script condition on connection refused have...
1,950
Posted By sadique.manzar
@RudiC No, i am worrying and just wanted to...
@RudiC No, i am worrying and just wanted to confirm does break can impact the while true condition if the ssh connection refused ?
or it will break and keep on running again and again due to while...
1,950
Posted By sadique.manzar
While true loop stopped
Hello Team,

In my shell script, it stopped without killing it.
Could you please help why ?
Below is the code :



get_dpi44_currentFiles()
{
truncate --size 0...
5,111
Posted By sadique.manzar
Thank you RudiC, requirement fulfilled.
Thank you RudiC, requirement fulfilled.
5,111
Posted By sadique.manzar
sed -r...
sed -r 's/([0-9]{8})([0-9]{2})([0-9]{2})([0-9]{2})/\1 \2:\3:\4/' file | date -f- "+%s"

like for
sed -r 's/([0-9]{8})([0-9]{2})([0-9]{2})([0-9]{2})/\1 \2:\3:\4/' 20181007130940 | date -f- "+%s"
5,111
Posted By sadique.manzar
Thanks RudiC, One more help please, how can...
Thanks RudiC,

One more help please, how can we set the above command for the value instead of file like 20181007130640

Regards,
5,111
Posted By sadique.manzar
Dear RudiC, It is taking from database and...
Dear RudiC,

It is taking from database and then storing in a file like Integer format.
its like date and time are concatenating and then pushing into flatfiles.

Regards,
5,111
Posted By sadique.manzar
Dear RudiC, Kindly guide how can i implement that...
Dear RudiC, Kindly guide how can i implement that ?
5,111
Posted By sadique.manzar
Can we convert it into seconds by any means ? ...
Can we convert it into seconds by any means ?

It is taking from db concatenating and then storing in a file like Integer format.
5,111
Posted By sadique.manzar
Hello Rudic, it is in a file as one of the column...
Hello Rudic, it is in a file as one of the column "20181004173050"

Example:

20181004172111
20181004172113
20181004172113
20181004172114
20181004172153
20181004171906
20181004171220...
5,111
Posted By sadique.manzar
Converting time format as Integer to seconds
Hello,

How can we convert date like format 20181004171050 in seconds ?

I can able to convert till date but failing for HHMMSS.

date -d "20181004" "+%s" output as 1538596800 .
But when i...
2,835
Posted By sadique.manzar
Thank you very much, but i need to test the...
Thank you very much, but i need to test the connection and then cat else copied .
so how can i achieve that. truncate --size 0 $dpi_42_fixed_currentFileList i need to perform at every run its...
2,835
Posted By sadique.manzar
#!/bin/bash ...
#!/bin/bash
script_work_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_work_area"
script_config_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_config"...
2,835
Posted By sadique.manzar
Yes directory is there. but ls is trying to...
Yes directory is there.

but ls is trying to run on local path after ssh so its unable to find the path.

My requirement is ssh connection established
if true then list files of...
2,835
Posted By sadique.manzar
Unable to ssh and list files in local directory from remote.
#!/bin/bash
script_work_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_work_area"
script_config_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_config"...
2,681
Posted By sadique.manzar
Still an error: line 3: 1534159198 - :...
Still an error:

line 3: 1534159198 - : syntax error: operand expected (error token is "- ")
2,681
Posted By sadique.manzar
Throws an error.line 5: unexpected EOF while...
Throws an error.line 5: unexpected EOF while looking for matching `"
2,681
Posted By sadique.manzar
Script to find directory is getting files in every 10 mins, if not then when last time file received
Dears,

I am looking for a script which will work as a watch directory.
I ha directory which keep getting files in every 10 mins and some time delay.
I want to monitor if the directory getting...
1,581
Posted By sadique.manzar
Thanks rdrtx1, it worked perfectly for me.
Thanks rdrtx1, it worked perfectly for me.
1,581
Posted By sadique.manzar
Read and write operations on files.
Dears.
kindly guide !!!

I have data, which is delimited by | .
it should contain 26 columns, but one column data contain | makes few row to 27 columns.

I want to find rows have 27 columns and...
2,559
Posted By sadique.manzar
how do i delete matching lines of one file from...
how do i delete matching lines of one file from other in loop ?

---------- Post updated at 04:03 AM ---------- Previous update was at 03:58 AM ----------

comm -12 <(sort File1) <(sort File2)
...
2,559
Posted By sadique.manzar
Have 2 files contain: File1 have lines: ...
Have 2 files contain:

File1 have lines:

/fstest/INVESTIG/Sadiq/TEST/file001.bin
/fstest/INVESTIG/Sadiq/TEST/file002.bin
/fstest/INVESTIG/Sadiq/TEST/file003.bin...
Showing results 1 to 25 of 81

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