Here is the problem. I want to split a file on the first instance of an expression. Example:
Julie
Jim
Bill
Steve
John
Jay
Bill
Bob
Bill
etc
If I use the command /usr/bin/csplit -k -f /var/name /var/name '/Bill/' from the shell prompt I get the two files I am looking for. If I use the same command within a script I get a /Bill - out of range error.
I only want to split off the first occurance. Any ideas?
Julie
Jim
Bill
Steve
John
Jay
Bill
Bob
Bill
etc
If I use the command /usr/bin/csplit -k -f /var/name /var/name '/Bill/' from the shell prompt I get the two files I am looking for. If I use the same command within a script I get a /Bill - out of range error.
I only want to split off the first occurance. Any ideas?