![]() |
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 read the value from a specific line and column in to a csh variable | Radamez | Shell Programming and Scripting | 2 | 01-09-2009 04:19 AM |
| How to read a specific value from a Log file? | cooolthud | Shell Programming and Scripting | 8 | 04-17-2008 11:30 AM |
| read specific text from a log file | ragha81 | Shell Programming and Scripting | 4 | 10-17-2006 01:17 PM |
| Shell Script to read specific lines in a file | varshanswamy | Shell Programming and Scripting | 5 | 08-22-2005 07:12 PM |
| read a file as input and pass each line to another script | sajjad02 | Shell Programming and Scripting | 0 | 09-24-2004 11:13 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
A script that read specific fileds from the 7th line in a file
Dear All,
I need a unix script that will read the 7th line and especially these fileds from a file Mo speed 16, Mt speed 15 every 15 minutes starting from 00:00 to 23:45 on daily basis and put the result in a txt file and name it MT_MO_20090225.txt, please also note that the system date format is Thu Feb 26 17:16:28 GMT-1 2009. Please find attached SAMPLE of the file. Waiting for your positive response. Rgrds, Ali |
|
||||
|
Please note i have prepared the below script.
#!/bin/ksh # A shell script to print the MO and MT license OF SMSC # Written by Tom - Feb/27/2009 # -------------------------------- telnet 10.35.90.100 Username= user Password=user cd /home/smc/log/smcapp cat smcapp.run.0 | awk -F, '{print $7 "," $8,"$9,"$10,"$11,"$12,"$13 }' >> SMSC_License_20090227.txt Please note that i need to run this script from a different server and put the SMSC_License_20090227.txt in that server and needs to make theis script read from the file every second although the data generated in the file is every one minute. Please check the above script and correct if there is any eeror. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|