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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-17-2008
Gboy Gboy is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 11
Cut Command Help Please

Hey Guys,

I'm trying to use the cut command to do the following:

Code:
"AuctionID","UserID","BidderRating","Bid","BidDateTime"
1070387924,"rmichaelll",46,407.00,2/12/2002 14:07:44
1070387924,"decocloxcolektor",155,402.00,2/12/2002 14:07:28
1070387924,"markartz",6,350.00,2/12/2002 11:11:52
1070387924,"markartz",6,275.00,2/12/2002 1:23:19
This is a file called ebay_sort.dat
I'm trying to cut just the AuctionID column only and output to a different file and display to the user.

This is what I have so far, but Im still having trouble.
Could someone point me in the right direction?

Code:
cat ebay_sort.dat | cut -c -f1 | sort -u  > acution_list.dat

echo
echo
echo HERE IS THE LIST OF AUCTIONIDS:
echo -------------------------------
echo
cat acution_list.dat

Last edited by Gboy; 11-17-2008 at 10:59 PM..