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
how to convert text/csv to excel kotasateesh UNIX for Advanced & Expert Users 7 04-27-2009 10:50 AM
How convert PCL or PDF file to text in AIX 10789 AIX 0 05-31-2008 03:07 AM
sed or awk to convert text files with recurring headings to rows and colum Bjoeboo Shell Programming and Scripting 5 05-07-2008 10:47 AM
Print Multipul Fiels as One shot geoquest UNIX for Dummies Questions & Answers 9 04-10-2002 08:57 AM
How do I convert unix text to to win text? nucca UNIX for Dummies Questions & Answers 1 06-25-2001 02:30 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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-27-2009
mrlayance mrlayance is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 20
Convert Text within multipul files - for loop

Is this possible?

Code:
#!/bin/ksh
for file in `*.idlesince` 
do
  while read inter time
  do
    printf "%s %s\n" "${inter}" "$(perl -e 'print scalar localtime('"${time}"') . "\n";')" >> "${file}.done"
  done < "${file}"
done
The error I get is
Code:
line 9: router.idlesince: command not found
 

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 02:07 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