::FrozenMist::
01-16-2004, 05:42 PM
For the web site I am currently working on ( http://fm.ibdof.com ) I have written an XML styylesheet and file to create a php page containing my latest news entry and also create an archives page. However, when the php page is created it puts a line <?xml version="1.0" encoding="utf-8"?> type tag at the beginning.
I use a shell script to generate all of the content, and I need a little help. All I need is to find a Linux bash shell command that will let me remove the first line of the text file. I have tried using split, and cut, but to no avail.
I also thought of using "wc" and then somehow extracting JUST the number of characters or lines in the file, then using cut to print everything EXCEPT the first 39 characters or the first line (either would do)., then using ">" to output to a file. However, I do not know how I can get JUST the number of lines or JUST the number of characters from "wc". It always prints the name of the file at the end of the line, which is very frustrating. I think a possiblity may be to use AWK, but I have no idea how to use it and can't figure out from "awk --help" or the man page. Any help would be MUCH appreciated.
Also, does anyone know of any site which may have a tutorial or two on batch ftp procedures? I also want to add the upload procedure to the script.
Thanx in advance.
I use a shell script to generate all of the content, and I need a little help. All I need is to find a Linux bash shell command that will let me remove the first line of the text file. I have tried using split, and cut, but to no avail.
I also thought of using "wc" and then somehow extracting JUST the number of characters or lines in the file, then using cut to print everything EXCEPT the first 39 characters or the first line (either would do)., then using ">" to output to a file. However, I do not know how I can get JUST the number of lines or JUST the number of characters from "wc". It always prints the name of the file at the end of the line, which is very frustrating. I think a possiblity may be to use AWK, but I have no idea how to use it and can't figure out from "awk --help" or the man page. Any help would be MUCH appreciated.
Also, does anyone know of any site which may have a tutorial or two on batch ftp procedures? I also want to add the upload procedure to the script.
Thanx in advance.