The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Delete line in text file Berserk UNIX for Dummies Questions & Answers 6 12-16-2008 03:44 PM
how to delete text from line starting pattern1 up to line before pattern2? repudi8or Shell Programming and Scripting 5 04-15-2008 09:25 PM
how to delete line with matching text and line immediately after orahi001 UNIX for Dummies Questions & Answers 6 01-15-2008 12:34 AM
how to delete away text in a file? forevercalz Shell Programming and Scripting 5 01-08-2006 10:28 PM
delete last line from text file hcclnoodles Shell Programming and Scripting 4 06-25-2002 09:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-16-2006
aungomarin aungomarin is offline
Registered User
  
 

Join Date: Apr 2006
Location: Thailand
Posts: 15
Delete first line from any text file ?

What command I can use to delete first line from any text file ?
Thk
  #2 (permalink)  
Old 05-16-2006
futurelet futurelet is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 137
Code:
awk 'FNR>1' myfile
or
Code:
awk 'FNR>1' myfile1 myfile2
  #3 (permalink)  
Old 05-16-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 578
sed 1d textfile
  #4 (permalink)  
Old 05-16-2006
aungomarin aungomarin is offline
Registered User
  
 

Join Date: Apr 2006
Location: Thailand
Posts: 15
Thk very much for all reply.

And what command which I can calculate any number in operation

<command> "[calculate area]"

Last edited by aungomarin; 05-16-2006 at 05:43 AM..
  #5 (permalink)  
Old 05-16-2006
sharkie60 sharkie60 is offline
Registered User
  
 

Join Date: May 2006
Posts: 2
Quote:
Originally Posted by aungomarin
Thk very much for all reply.

And what command which I can calculate any number in operation

<command> "[calculate area]"
you mean like -
expr 2 \* 4
result would be 8

Last edited by sharkie60; 05-16-2006 at 03:39 PM.. Reason: result missing
  #6 (permalink)  
Old 05-16-2006
aungomarin aungomarin is offline
Registered User
  
 

Join Date: Apr 2006
Location: Thailand
Posts: 15
Thk very much..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0