It's not a secret anymore!*
The moose likes Linux / UNIX and the fly likes simple sed command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "simple sed command" Watch "simple sed command" New topic

simple sed command

Pappu Kumar
Ranch Hand

Joined: Oct 01, 2002
Posts: 69
I have a file ("test.dat"). How do i remove the first 26 characters of the First and the Last line of this file. PLease suggest.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

[ May 09, 2006: Message edited by: Stefan Wagner ]
[ May 09, 2006: Message edited by: Stefan Wagner ]
I agree. Here's the link:
subject: simple sed command
Similar Threads
Problem inserting Blob into Oracle DB
server.log doesn't save MaxBackupIndex= "5"
Downloading an Image
Inserting into a jar file
Creating array of objects from user input and saving to a file