10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Below are the sample files. x.txt is from an Excel file that is a list of users from Windows and y.txt is a list of database account.
$ head -500 x.txt y.txt
==> x.txt <==
USER01 ... (3 Replies)
Discussion started by: newbie_01
2. Shell Programming and Scripting
The below code works great, kindly provided by @Don Cragun, the lines in bold print the current output. Since some of the fields printed can be blank some of the fields are shifted. I can not seem too add . to the blank fields like in the desired output. Basically, if there is nothing in the field... (10 Replies)
Discussion started by: cmccabe
3. Shell Programming and Scripting
I have a file as below
<field1> <field2> <field3> ... <field_num1> <field_num2>
Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all fields.
I tried this and it doesn't sort on the difference field .. Appreciate your help.
cat... (9 Replies)
Discussion started by: newstart
4. Shell Programming and Scripting
I'm trying to compare 2 files for differences in a selct number of fields. When differnces are found it will write the whole record of the second file including appending '|C' out to a delta file. Each record will have 20 fields, but only want to do comparison of 1st 15 fields. The 1st field of... (7 Replies)
Discussion started by: sljnk
5. Shell Programming and Scripting
I need to print the first field first then last two fields should come next and then i need to print rest of the fields.
a1,b1,b2,abc,jsd,fhf,fkk... (6 Replies)
Discussion started by: 100bees
6. Shell Programming and Scripting
I am looking for an awk script to do the following
Join the fields together only if the first 4 fields are same.
Can it be done with join function in awk??
... (1 Reply)
Discussion started by: aksijain
7. UNIX for Dummies Questions & Answers
I have a custom prompt in Bash. However, I would like to further customise it so that it shows me the date and time. However, I would like this new addition to appear on the right side of the terminal window.
The idea behind this is to "visually balance" some data on the right as most of... (2 Replies)
Discussion started by: vnayak
8. UNIX for Dummies Questions & Answers
This is my first post here and I am a newbie. :)
I have a file that looks like this :
Setting up user accounts:Set_user_acc.html
I tried to create a script that would output "The filename... (3 Replies)
Discussion started by: Joq
9. Shell Programming and Scripting
Hi everybody (first time posting here)
I have a file1 that looks like >
2,26,34,0.723404with 762 lines..
I have another 'similar' file2 >
... (10 Replies)
Discussion started by: murpholinox
10. Shell Programming and Scripting
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
Discussion started by: axo959