I am trying to use the unxutils in a script I am writing and I am having a
problem.  Since this is where I heard of the Unxutils, I thought I'd ask my
question here.

The main problem is that I am not familiar with the tools, so this is
probably a no-brainer.

I have a file that is downloaded on a regular basis, but no matter how I
download it, the first line of the file is always prepended by 3 garbled
characters ().  What I want to do is simply use sed to remove those first
three characters and output the remainder of the file.  Anyone?

I googled for "sed delete line" and got

http://www.student.northpark.edu/pemente/sed/sed1line.txt, among others.


I suggest you figure out the syntax for sed "delete line" when a line starts with" " those characters will probably need to be escaped with \ within the /pattern/, and the pattern anchored at BOL with "^":


/'^\�\�\�'/d

Another way to skin that cat, from the above page:


# delete the first 10 lines of a file sed '1,10d'



Len

_____________________________________________________________________
http://IMGate.MEIway.com : free anti-spam gateway, runs on 1000's of sites


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to