The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find and replace command in one line using one command vasikaran UNIX for Dummies Questions & Answers 10 08-20-2008 07:40 AM
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 03:06 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 10:52 PM
Explain the output of the command.... wickbc UNIX for Dummies Questions & Answers 1 11-08-2007 12:18 PM
explain command plz maoro UNIX for Dummies Questions & Answers 2 05-08-2007 01:51 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-28-2005
saneeshjose's Avatar
Registered User
 

Join Date: Dec 2005
Posts: 15
Red face Please explain this command line ?

Please explain this command line ?

wc<infile<newfile

Thanx,
Saneesh Joseph.
Reply With Quote
Forum Sponsor
  #2  
Old 12-28-2005
saneeshjose's Avatar
Registered User
 

Join Date: Dec 2005
Posts: 15
Hi vino,

This is not a duplicate post..

Both are two different command lines.

Thanx and Regards,
Saneesh Joseph
Reply With Quote
  #3  
Old 12-28-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Quote:
Originally Posted by saneeshjose
Please explain this command line ?

wc<infile<newfile

Thanx,
Saneesh Joseph.
It will display the following details of new file : the number of bytes, words, and lines

It is the same as wc <newfile or wc newfile

Code:
[/tmp]$ cat infile
abc
def
ghi
[/tmp]$ cat newfile
123
456
789
asd
fgh
jkl
[/tmp]$ wc <newfile
      6       6      24
[/tmp]$ wc <infile
      3       3      12
[/tmp]$ wc <newfile <infile
      3       3      12
[/tmp]$ wc newfile infile
      6       6      24 newfile
      3       3      12 infile
      9       9      36 total
[/tmp]$
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0