Search Results

Search: Posts Made By: arunkumar_mca
3,080
Posted By arunkumar_mca
It is on "Red Hat Enterprise Linux Server release...
It is on "Red Hat Enterprise Linux Server release 7.5 "
3,080
Posted By arunkumar_mca
Command disabling sudo access
Hi,

I have setup password less login to sudo for a particular group. if I do sudo /usr/local/sbin/group it will take me to the group without password. Recently i executed a command scl_source...
4,250
Posted By arunkumar_mca
Below is the example if also part Example: ...
Below is the example if also part

Example:
10264;ATE;1009090992.1111
10265;SES;11
10266;AUT;50
10264;ATE;10
10265;SES;13
10266;AUT;89
10264;ATE;1
10265;SES;15
10266;AUT;78

Output...
4,250
Posted By arunkumar_mca
Thanks . When I tried to print the description...
Thanks . When I tried to print the description using the below command I am getting only one description not sure what I am doing wrong

awk -F'[;]' '{ t[$1]+=$3 } END { for (i in t) print i,$2,...
4,250
Posted By arunkumar_mca
Sum in file based column
Hi All,

I have a file as below and want to sum based on the id in the first column

Input
10264;ATE; 12
10265;SES;11
10266AUT;50
10264;ATE;10
10265;SES;13
10266AUT;89
10264;ATE;1...
4,260
Posted By arunkumar_mca
Match file and extract the output
Hi All

I have 2 file . I need match the files based on key and then form a third file which have the matching values

FILE1:
10264;K*AD
10265;K*AIR
10266;K*AUTO
10267;K*BABY
10268;K*...
4,216
Posted By arunkumar_mca
Extract a column and multiple by 1000 and replace it on same file
Hi All,

I need to extract a position in the file and multiple the value by 1000 and the replace it .

Original
0010001200084701217637306521200000000000010010000000 ---> 000847 * 1000...
2,896
Posted By arunkumar_mca
Thanks the below worked . Is there a way I can...
Thanks the below worked . Is there a way I can sum those values to total. I get the each row doing the operation but I need to sum up those rows

awk '{print ( ( substr($0,50,5) * substr($0,55,6)...
2,896
Posted By arunkumar_mca
Multiply values from a file
Hi All,

I extracted a file using an awk command like this

awk '{print substr($0,78,5)"," substr($0,59,6) "," substr($0,81,3) "," substr($0,11,7)}' file1 >> OUTPUT
cat OUTPUT...
3,785
Posted By arunkumar_mca
Execute a script after SFTP transfer
Hi All,

I am having an issue with the script execution. I am having a SFTP process that send files to a location . I want to execute a script once it transfer the file to that location. Right...
1,889
Posted By arunkumar_mca
Thanks for the input . I should have been more...
Thanks for the input . I should have been more clear. This sed will convert all blank space to non blank. There is a change that other position can be blank. I need to move these only based on...
1,889
Posted By arunkumar_mca
Shift record from one position to another
Hi All,

I have a file and it is a fixed length file. I want to move the values from 42,6 ( where 6 is length) to the 36th position


Original file:
00000100000100000100000100000100001 ...
3,031
Posted By arunkumar_mca
Replace a numeric values in a certain column
Hi All,

I am trying to replace a certain value from one place in a file . In the below file at position 35 I will have 8 I need to modify all 8 in that position to 7

I tried

awk...
1,974
Posted By arunkumar_mca
I want to match only 1,8 position and match the...
I want to match only 1,8 position and match the record. Is there a way I can add in thew awk ? . I tried the below and it is not getting me any output

awk 'NR==FNR{a[substr($0,1,8)];next} ($2 in...
1,974
Posted By arunkumar_mca
Matching 2 files based on key
Hi all

I have two files I need to match record from first file and second file on column 1,8 and and output only match records on file1

File1:...
Forum: Programming 01-24-2019
3,395
Posted By arunkumar_mca
Very strange output with casting
Hi All,

I am having a strange issue. Below is the code snippet. If I print fraction * (double)::pow((double)10,scalingFactor) which is a double I am getting 154 when I type cast that to int as...
1,305
Posted By arunkumar_mca
Ignoring decimal in comparision
HI All,

I am having a requirement on ignoring mismatch on 2 file

File 1:
A,B,US,10.02
A,B,US,10.02
A,B,US,11.02
File 2:
A,B,US,10.02
A,B,US,10.00
A,B,US,12.02

Here I want to...
1,097
Posted By arunkumar_mca
sed and replace
Hi All,

I am trying to replace ", " with ",". For I am getting below error. I think I am missing something. I tried to escape the , with \ still I see the same error


Input...
3,092
Posted By arunkumar_mca
I should have said that "_SB" or "_B". I know...
I should have said that "_SB" or "_B".
I know it is against the form to post personal comment. @peasant I was trying to do in parallel to see how I can get this in from SQL. I was not being rude...
3,092
Posted By arunkumar_mca
I am using Redhat Linux. In my example I have SB...
I am using Redhat Linux. In my example I have SB alone so it should be CONC- BC. Things I have tried

cut -d' ' -f1,2,3 test.desc - where test.desc is my file. This will bring me from 2nd segment...
3,092
Posted By arunkumar_mca
Help with pattern match and Extract
Hi All,

I am having a file like below . Basically when SB comes in the text with B. I have to take the word till SB. When there only B I should take take till B. Tried for cut it by demilter but...
4,216
Posted By arunkumar_mca
It worked partially (K>) awk -f change.awk...
It worked partially

(K>) awk -f change.awk input.csv
id,description,type,year
994475;1832 + S PP1829 10/17/18;S;P201829;115;N;4,4;M;0;xx994475;*;BA7005;10/17/2018 16:48
994477;1836 + S...
4,216
Posted By arunkumar_mca
I missed the column in the input. Input...
I missed the column in the input.


Input with columns
994475;1832 + S PP1835 10/17/18;S;P201835;115;N;4,4;M;0;xx994475;*;BA7005;10/17/2018 16:48
994477;1836 + S PP1839...
4,216
Posted By arunkumar_mca
First my apologize for not putting the actual...
First my apologize for not putting the actual data.

ORIGINAL
994475;1832 + S PP1835 10/17/18;S;P201835;115;N;4,4;M;0;xx994475;*;BA7005;10/17/2018 16:48
994477;1836 + S PP1839...
4,216
Posted By arunkumar_mca
Changing CSV files with date . Subtracting date by values
Hi All,

I have a CSV file which is as below. Basically I need to take the year column in it and find if the year is >= 20152 . If that is then I should subtract all values by 6. In the below...
Showing results 1 to 25 of 441

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