stephenk1973
Technical User
I have a text file on which i would like to get rid off anything after a certain phrase. Basically it a import for a database and the last import is no longer required.
My text file is of the format....
*tab_imp1
001
002
003
*tab_imp2
003
004
006
I do not want to do the second imports so i have tried putting in what i thought was any end of file character...
awk -Ftab_imp2 '{print $1"\003"}' file1>file2
I still get the end of the file!
Can anyone please let me know where i am going wrong or the correct method of completeing this.
All suggestions and much appreciated
Thanks
Stephen
My text file is of the format....
*tab_imp1
001
002
003
*tab_imp2
003
004
006
I do not want to do the second imports so i have tried putting in what i thought was any end of file character...
awk -Ftab_imp2 '{print $1"\003"}' file1>file2
I still get the end of the file!
Can anyone please let me know where i am going wrong or the correct method of completeing this.
All suggestions and much appreciated
Thanks
Stephen