Wednesday 2 September 2015

Unix Script to generate files based on unique values of a field

Below file has different mobile companies. I need to generate the files dynamically based on the unique values of the field.I can have blank values also.But I should not generate files for those.

Input:














Generate the Unique values :





Script to generate files based on the unique values. Here -z in the if condition represents the check for empty variable.










Output:



1 comment:

  1. The Hard Rock Hotel & Casino Hollywood in Marksville, LA
    The Hard Rock Hotel & Casino Hollywood in 양산 출장마사지 Marksville, LA offers guests a 김제 출장샵 full-service 광명 출장마사지 spa, 24/7 gaming, and 경주 출장안마 a variety of entertainment venues. The resort offers a 안산 출장안마

    ReplyDelete