Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within GNU/Linux
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
GNU/Linux
simple sed command
Pappu Kumar
Ranch Hand
Posts: 69
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 1923
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
sed '1s/^.\{26\}//;$s/^.\{26\}//' test.dat
[ May 09, 2006: Message edited by: Stefan Wagner ]
[ May 09, 2006: Message edited by: Stefan Wagner ]
http://home.arcor.de/hirnstrom/bewerbung
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Problem inserting Blob into Oracle DB
server.log doesn't save MaxBackupIndex= "5"
Creating array of objects from user input and saving to a file
Inserting into a jar file
Downloading an Image
More...