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
Piping / Executing ProFiction Shell Programming and Scripting 3 07-23-2007 01:58 PM
Piping in UNIX simo007 UNIX for Dummies Questions & Answers 3 05-23-2007 02:40 AM
Piping from device? gary101 Shell Programming and Scripting 0 03-31-2007 06:21 AM
Help with piping program PuppyHusher High Level Programming 3 03-30-2007 12:26 PM
piping lnatz Shell Programming and Scripting 1 07-14-2006 02:30 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 02-10-2006
scan scan is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 2
Help (Piping ls, tr, cut)

I have to:
pipe ls, tr, and cut to output the size (in bytes) and name of all of the files/dirs in the current directory (including any hidden ones), with the size at the beginning of the line, followed by a single tab character, followed by the the filename.

I don't know what the point of using tr is. So far what I've been doing is:

ls -al | cut -d' ' -f5

the problem i'm having is grabbing the right field of information from ls
  #2 (permalink)  
Old 02-10-2006
scan scan is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 2
forget it. i figured it out
  #3 (permalink)  
Old 02-11-2006
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Nice work solving your own homework problem - but you might want to take a look at this before posting another.

Thanks
ZB
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 08:28 AM.


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