The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need Help using sed command(very urgent) sunitachoudhury Shell Programming and Scripting 9 03-19-2008 08:59 PM
find command - Urgent Plz. Kris_Kart_101 UNIX for Dummies Questions & Answers 2 10-18-2005 06:53 AM
wc command help.... and other unix command....... urgent dashi2k UNIX for Dummies Questions & Answers 1 01-20-2005 03:39 PM
tar command ? URGENT salzig UNIX for Dummies Questions & Answers 1 04-13-2004 09:57 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-01-2006
Registered User
 

Join Date: Jan 2006
Posts: 72
need urgent help in cut command

hello

i need help in cut command .. i want to cut the column number 1 - 4 coulmn from my data file . all feilds are tabe delimeted .

i am doing this way but getting error

the data is generated after that i am opening that file in

cat testdata.log | cut - d" " -f 1,2,3 > testdata.log

I am facing the problem it delets all data from file pls help me
Reply With Quote
Forum Sponsor
  #2  
Old 03-01-2006
Registered User
 

Join Date: Dec 2005
Location: India
Posts: 218
Redirect your output to some other file rather than the input file.
And it will start working


Gaurav
Reply With Quote
  #3  
Old 03-01-2006
Registered User
 

Join Date: Jan 2006
Posts: 72
thaks it is working
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:25 PM.


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