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
finding duplicate files by size and finding pattern matching and its count jerome Sukumar Shell Programming and Scripting 2 12-01-2006 04:20 AM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 05:25 PM
viewing binary files in ASCII manjunath UNIX for Advanced & Expert Users 2 04-02-2002 09:32 AM
open ASCII files Wing m. Cheng High Level Programming 2 10-27-2001 04:12 PM
ASCII Files yialousa UNIX for Dummies Questions & Answers 1 08-09-2001 08:27 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-07-2009
Casey's Avatar
Casey Casey is offline
Registered User
  
 

Join Date: Jun 2009
Location: Buenos Aires
Posts: 18
Question Finding and using (only) ASCII files.

Hi,

I had to do something I could do in a way that worked fine, but I'm still wondering if there's a shorter way (which I think there is)...

I had to find only the ASCII files of a directory, and then work with them (that is, not only showing on screen)

What I did was


Code:
 
ls | xargs file | grep "ASCII" | cut -d ":" -f 1 | xargs something......

That worked pretty well, but I think it's kinda long for such an supposed-to-be-easy task.

So, could you help me finding another way to find only the ASCII files of a directory? If possible, not using sed or awk, since I still don't know these commands at all.

Thanks a lot in advance,

Casey.
 

Bookmarks

Tags
ascii, file, find

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 12:41 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