Hi!
In an awk tutorial i was reading (from
www.grymoire.com), it was mentioned that i can set the input field separator to more than one character using FS. However when i tried it out, it wasnt working.
File a :
abc/:/:as
as/:f/:f
AE/:/:as/:/:s
script a.sh
#!/bin/awk -f
BEGIN {
FS="/:";
}
{
print $1, $2;
}
command:
home/# as.sh<a
abc :
as :f
AE :
however, the output i shud get is
abc
as f
AE
can someone tell me what am i doing wrong here?