BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 22nd, 2002, 06:01 AM
Dreidle Dreidle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 10 Dreidle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question *CUT* command (Need Help Please!)

I have a txt file with over 5,000 names for example one of the names is :

Jenna Jameson

I made a text file with all these names deliminated by `:` so it looks like this :

Jenna:Jameson

Well I've successfully used the CUT command for the first time to grab all the last names, but how would I go about sending the output to a text file called CO.TXT within the same DIR as CN.TXT (Which contains all the names).

Here is the command I'm using :
CUT -f2 -d: cn.txt

Would appreciate a quick response, thank you kindly for reading this!

-Dr.Dreidle


Reply With Quote
  #2  
Old April 22nd, 2002, 06:20 AM
Dreidle Dreidle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 10 Dreidle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking Silly me!

Sorry about that silly question, but all of you were newbies at one point and time!

CUT -f2 -d: cn.txt > co.txt

works just fine! But I still love this Forum!

Reply With Quote
  #3  
Old April 30th, 2002, 09:51 AM
estrabd's Avatar
estrabd estrabd is offline
o0o.o0o
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: m00n
Posts: 194 estrabd User rank is Second Lieutenant (5000 - 10000 Reputation Level)estrabd User rank is Second Lieutenant (5000 - 10000 Reputation Level)estrabd User rank is Second Lieutenant (5000 - 10000 Reputation Level)estrabd User rank is Second Lieutenant (5000 - 10000 Reputation Level)estrabd User rank is Second Lieutenant (5000 - 10000 Reputation Level)estrabd User rank is Second Lieutenant (5000 - 10000 Reputation Level)estrabd User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 h 15 m 59 sec
Reputation Power: 101
Send a message via ICQ to estrabd Send a message via AIM to estrabd Send a message via Yahoo to estrabd
You can use a redirect, like:

CUT -f2 -d: cn.txt > co.txt

The ">" will redirect the output to the file co.txt; watch out though because the ">" will overwrite co.txt if it is already there. A ">>" will append to co.txt if already there. Hope this solves your problem. Send me the link to the porn library when you get it up

BTW, what shell are you using?

Brett

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > *CUT* command (Need Help Please!)

Developer Shed Advertisers and Affiliates



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap