Search Results

Search: Posts Made By: Sagar Singh
4,366
Posted By Sagar Singh
Hi, Actually my file contains approx 3000 lines...
Hi,
Actually my file contains approx 3000 lines that's why I am getting this type of output.
Can you please suggest me any other command to get the same output using awk.
4,366
Posted By Sagar Singh
awk command to paste 1st columns of 2 files.
I have 2 files contains more than 5000 lines, I want to paste the 1st column of both file in an output file using awk.
Please suggest to me I had tried paste command but it merges my both column.
...
1,916
Posted By Sagar Singh
Required column output should be arranged in awk
dump file

2020-01-05 & 234135 ossuser 4 CACLP;
2020-01-05 & 234207 ossuser 3 CACLP;
2020-01-05 & 234307 ossuser 1002 CACLP;
2020-01-05 & 234427 ossuser...
4,521
Posted By Sagar Singh
Anyone, please suggest me how to get the given...
Anyone, please suggest me how to get the given pattern.
4,521
Posted By Sagar Singh
Hi , NO, it's not homework I had just posted...
Hi ,
NO, it's not homework I had just posted input and output for easy understanding.
i had attempted this code

awk 'NR % 10 == 1'


Please wrap your samples in CODE TAGS.
4,521
Posted By Sagar Singh
1,257
Posted By Sagar Singh
Input files file01 Hello Sagar file02...
Input files

file01
Hello Sagar

file02
Hello Sagar

file03
Hello Rohit

file04
Hello Sagar

file 05
Hello Vishal

file06
1,257
Posted By Sagar Singh
Hello R.Singh sir, file01 Hello Sagar ...
Hello R.Singh sir,

file01
Hello Sagar

file02
Hello Sagar

file03
Hello Rohit

file04
Hello Sagar

file 05
Hello Vishal

file06

file07
1,257
Posted By Sagar Singh
Find file dont have that string
I have 13 text files and almost all of them contain the same string.
but some file has diffrent string inside.
I want to send that file which has a diffrent string inside
1,299
Posted By Sagar Singh
Dear sir, please check now. using this...
Dear sir, please check now.

using this command " awk '{sum+=$2} {print $0," "sum*$3}' " not getting the required output
Here I want to multiply the sum of all values of column 2 with each line...
1,299
Posted By Sagar Singh
sir, I am a trainee in a telecom company and...
sir, I am a trainee in a telecom company and this is the daily routine work I have to do this daily, that's why I am trying to automate it using Linux scripting

Actual question is
mss1:BSCNND2 ...
1,299
Posted By Sagar Singh
Add column and multiply its result to all elements of another column
Input file is as follows:
1 | 6
2 | 7
3 | 8
4 | 9
5 | 10

Output reuired (sum of the first column $1*$2)

1 | 6 | 90
2 | 7 | 105
3 | 8 | 120...
Showing results 1 to 12 of 12

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