LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-23-2008, 10:42 AM   #1
basildon
LQ Newbie
 
Registered: Sep 2008
Posts: 12

Rep: Reputation: 0
Reading screen output line by line


Hi

I've identified a list of pathnames I would like to manipulate using
find * -type d which displays all of my directories in a list format

Is there away I can read each line sequentially so that I can make some changes to the output?
 
Old 09-23-2008, 02:33 PM   #2
animeshsaxena
LQ Newbie
 
Registered: May 2007
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by basildon View Post
Hi

I've identified a list of pathnames I would like to manipulate using
find * -type d which displays all of my directories in a list format

Is there away I can read each line sequentially so that I can make some changes to the output?
This should do...

for myvar in $(find * -type d);do echo $myvar ;done

instead of echo use any other operation .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with c program to read each line from text file, split line , process and output gkoumantaris Programming 12 07-01-2008 01:38 PM
Grep's line numbers parsed into one line of output. judgex Programming 8 08-14-2006 05:22 AM
File reading line by line and compare Goni Linux - Software 14 09-21-2005 01:24 AM
reading from a file line by line Menestrel Programming 5 12-15-2004 03:17 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM


All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration