I have this script lines
#!/usr/bin/bash
my_path=`dirname $0`
I_table=$1
echo $I_table
in I_table entry going is ccc_con,cc_gui
I want to break content of I_table in S_Table and T_table on basis of comma as separtor
I have this script lines
#!/usr/bin/bash
my_path=`dirname $0`
I_table=$1
echo $I_table
in I_table entry going is ccc_con,cc_gui
I want to break content of I_table in S_Table and T_table on basis of comma as separtor
Hi,
I_table:
ccc_con,cc_gui
awk -F\\"," '{print $1}' I_table > S_Table
awk -F\\"," '{print $2}' I_table > T_Table
Thanks
Sha
Hi Rahul,
Lets assume
$ a=gary,linux
$ echo $a
gary,linux ##output
Now
$ echo $a| awk 'BEGIN{FS=","}{print $1, " ", $2}'
gary linux ## output
hope this helps
Gary