![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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
Code:
line 9: router.idlesince: command not found |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|