10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am having a scenario where I need to split the file based on two field values. The file is a fixed length file.
K 0998703000000000000190510095351019500020005101480 ... (4 Replies)
Discussion started by: saj
2. Shell Programming and Scripting
In the awk below I am trying to add a penalty to a score to each matching $1 in file2 based on the sum of $3+$4 (variable TL) from file1. Then the $4 value in file1 is divided by TL and multiplied by 100 (this valvue is variable S). Finally, $2 in file2 - S gives the updated $2 result in file2.... (2 Replies)
Discussion started by: cmccabe
3. Shell Programming and Scripting
i need the count of rows of file1.txt present in the file2.txt
AAA 2 (10 Replies)
Discussion started by: mdkm
4. Shell Programming and Scripting
I would like to know how can I get the number of rows in file1 that:
- the 1st and 2nd field should be the same (text)
- the 3rd field should be less or equal (numeric)
when comparing to file2.
So for each row of file1, I would like to have the number of rows in file2 that follow the... (5 Replies)
Discussion started by: fadista
5. Shell Programming and Scripting
find . -type fl
o/p is only the ordinary file. where in it wont give the link files. (2 Replies)
Discussion started by: nikhil jain
6. UNIX for Dummies Questions & Answers
I have to write a script to compare the sum of the amount fields in a source file and the amount field in another file.
based on the name of the source file (say SALES as an example), a file already available in a path will be grabbed (say SALES_ParmFile) and this file... (4 Replies)
Discussion started by: vijaylak
7. Shell Programming and Scripting
I have multiple files in a directory all I am trying to do is to read the files in the directory and extract data from 2nd field till 10th field and put it in a new files. The files are pipe delimited. The new file will have the same name as the old file but the prefix of PRE_oldfilename.
... (1 Reply)
Discussion started by: simi28
8. Shell Programming and Scripting
I've a pipe delimited file where I want to find out a number of lines where 1st 2nd and last field are null using awk/sed. Is it possible?
Thanks (5 Replies)
Discussion started by: rudoraj
9. UNIX for Dummies Questions & Answers
I have 2 files
052288735 (1 Reply)
Discussion started by: unxusr123
10. Shell Programming and Scripting
I have some csv files out of which i want to find records which have empty values in either the 14th or 16th fields.
The following is a sample.
$cut -d',' -f14,16 SPS* | head -5
sip:firstname.lastname@example.org,sip:email@example.com... (2 Replies)
Discussion started by: rahulrathod