Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: Deleting first and last lines of a text file

by Bloodnok (Vicar)
on May 16, 2014 at 11:19 UTC ( #1086292=note: print w/replies, xml ) Need Help??

in reply to Re^2: Deleting first and last lines of a text file
in thread Deleting first and last TWO(2) lines of a text file

Works for me ...
$ sed -e '1d;$d' jaxws/src/share/jaxws_classes/com/sun/xml/internal/me +ssaging/saaj/soap/ > t $ diff jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/sa +aj/soap/ t 1d0 < /* 45d43 < }
Does your file have a newline as the last character ? You'll experience problems if not.

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^4: Deleting first and last lines of a text file
by vsmeruga (Acolyte) on May 16, 2014 at 12:31 UTC
    I am not seeing any characters at the end of the line when I open in edit plus

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1086292]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2022-01-23 07:14 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (63 votes). Check out past polls.