Search Results

Search: Posts Made By: Abhayman
2,040
Posted By Abhayman
Thank you so much
Thank you so much
2,040
Posted By Abhayman
Help to subtract columns from 2 files and output to new file
Hi,

I have 2 files in below formats

File1_Stored.txt
ABC:100, 83
ABC:84, 53
ABC:14, 1222And
File2_Stored.txt
ABC:100 , 83
ABC:84 , 1553
ABC:524 , 2626I am trying to get the 3rd file in...
3,569
Posted By Abhayman
Hi Dan, I think you are right . I did lot...
Hi Dan,

I think you are right . I did lot more analysis in last 24 hrs and it seems the issue is completely with array . It seems due to huge size the array is failing to store it and causes a...
3,569
Posted By Abhayman
Basically it is something like this { echo...
Basically it is something like this

{ echo "DBQuery.shellBatchSize = $employee_count ; "; cat query/employee_cemployeidd_count_tmp.js; } > query/employee_Id_count.js
sed -i "3i...
3,569
Posted By Abhayman
No, If you see it is not append it is insert ....
No, If you see it is not append it is insert . So, everytime the new record gets replaced.

---------- Post updated at 03:18 PM ---------- Previous update was at 03:05 PM ----------

Hi,

I...
3,569
Posted By Abhayman
The file size is not a issue . Can you explain...
The file size is not a issue . Can you explain more about file tool. I am not much aware of it
3,569
Posted By Abhayman
Hi, I am using Bash shell. I have set...
Hi,

I am using Bash shell.

I have set of Ids stored in a file and I am copying them in batches in array.


# Store Distinct ContainerIds in Array
distinct_array=`sed ':a;N;$!ba;s/\n/ /g'...
3,569
Posted By Abhayman
Hi, The reason why I am posting it under POSIX...
Hi, The reason why I am posting it under POSIX smallest allowable upper limit on argument length (all systems): 4096 is because , I am trying to run a mongo query from shell. When I run the query...
3,569
Posted By Abhayman
Actually I have 500K arguments to passed . The...
Actually I have 500K arguments to passed . The rough length of each argument is roughly 23 characters . so best i can pass is roughly 175 arguments and each loop . This is making the execution very...
3,569
Posted By Abhayman
Change value for POSIX
Hi,

I have a VM with following configration .

3.10.0-693.1.1.el7.x86_64 #1 SMP Thu Aug 3 08:15:31 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

My current POSIX is :--

Your environment...
1,204
Posted By Abhayman
Thank you so much
Thank you so much
1,204
Posted By Abhayman
Strings between 2 characters
Hi
I have a wired string pattern ( mongo output) which I need to convert to only values.

"_id" : ObjectId("59280d9b95385c78b73252e4"), "categorySetId" : NumberLong(1100000041), "categorySetName"...
2,485
Posted By Abhayman
SSH Trust Testing
Hi,

I want test the ssh trust between two host. It works fine if the trust is working fine but if the trust is not working fine it gets stuck.

#!/bin/sh
>/users/test/ssh.txt

for i in `cat...
1,848
Posted By Abhayman
Thanks
Thanks
1,848
Posted By Abhayman
Folder Merge
Hi,

I had a folder ABC . Was trying to move it . But the command was randomly stopped by mistake. Now , I have folder ABC in 2 location with different half data at each path . How do I merge...
1,363
Posted By Abhayman
Hi , The command works fine perl -lne...
Hi ,

The command works fine
perl -lne '(/File Name:(\d+).*?time taken.*?:(\d+)/ || /File Name:.*?\](\d+).*?time taken:(\d+)/) && print "$1 -- $2"'

But if the name is alphanumberic...
1,363
Posted By Abhayman
Thanks for the reply. It works fine with the...
Thanks for the reply.

It works fine with the File Name as number but if the file name is alphanumberic then it doesnt work.These data get missing from the result.

File Name:DLFE-300818427.pptx...
1,363
Posted By Abhayman
Grep and Print
Hi ,

I have data in below pattern

05:00:13,184 WARN [15501-24] ContentTransferService - CTS:createContent - File Name:470208627 Total time taken(ms):5137
05:00:13,184 WARN [15501-23]...
3,933
Posted By Abhayman
Thanks,
Thanks,
3,933
Posted By Abhayman
Subtraction
Hi

#!/bin/sh

month=`date +%m`
year=`date +%Y`
echo $month
a=02

# Retaining Data for Current and Previous Month
lmonth=`expr $month - $a`
if test "$lmonth" = "0"
then
...
1,688
Posted By Abhayman
Thank you
Thank you
1,688
Posted By Abhayman
SSH and It's usage
Hi ,

I was going through a script and I saw following commands :--

OPTS="-e /usr/local/bin/ssh -ralpgHSvuz --stats --rsync-path=/usr/local/bin/rsync"


OPTS="-e /usr/local/bin/ssh -vrlopgt...
Showing results 1 to 22 of 22

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