sergio2003
Technical User
Hello Brothers:
Y Have the next script ( ksh - Solaris):
#!/usr/bin/ksh
/usr/bin/cat /home/peri/Sergio/Mosaix/account.20040916 | /usr/bin/grep "/dev/pts/" | /usr/bin/awk '
BEGIN { FS = "/" }
{ a = 1
b = substr($6,a,a)
while ( b != "!" )
{
a = a+1
b = substr($6,a,1)
}
d = a -1
c = substr($6,1,d)
open ( c )
print $0 >> c
close ( c )
} '
BUT I get the next error "awk :Too many output files 10"
My idea is read a file (account.20040916 ) and create new files with some segments got from the account.20040916 file.
Any idea my friends?
Thanks in advance.
Sergio
Y Have the next script ( ksh - Solaris):
#!/usr/bin/ksh
/usr/bin/cat /home/peri/Sergio/Mosaix/account.20040916 | /usr/bin/grep "/dev/pts/" | /usr/bin/awk '
BEGIN { FS = "/" }
{ a = 1
b = substr($6,a,a)
while ( b != "!" )
{
a = a+1
b = substr($6,a,1)
}
d = a -1
c = substr($6,1,d)
open ( c )
print $0 >> c
close ( c )
} '
BUT I get the next error "awk :Too many output files 10"
My idea is read a file (account.20040916 ) and create new files with some segments got from the account.20040916 file.
Any idea my friends?
Thanks in advance.
Sergio