The UNIX and Linux Forums  

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
Script required to get a required info from file. Pls. help me. ntgobinath Shell Programming and Scripting 2 05-31-2008 09:34 AM
xen help required learnbash Red Hat 0 05-03-2008 10:46 AM
Help Required Anand Prakash Linux 1 01-14-2008 05:32 AM
help required with cut -d Amardeep Shell Programming and Scripting 4 11-27-2006 07:39 AM
Help required. Lokesha SUN Solaris 3 07-14-2006 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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-30-2008
Danish Shakil Danish Shakil is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 35
HELP Required Please!!!!!!!!!

Dear Friends,

I have a script below mentioned, it is running OK on Linux platform but somehow now i have to use SOLARIS 10 for this script, When i run this script i have some error messages also given below.

Can any of you help me with this, i will be very thankful to him.


:::::::::::::::::::::::::::::::::::::SCRIPT:::::::::::::::::::::::::::::::::::::::::

#/usr/sbin/ksh
set -x


awk > help.txt '/HW-FAILURE/' ORS="\n" RS= TRE_alarm.txt

cat help.txt | grep "unit-type % bts nbr %" > temp_TRE.txt
cat help.txt | grep "SBL-type % tre nbr %" > temp_TRE1.txt
cat help.txt | grep "HW-FAILURE" >temp_TRE2.txt

cat temp_TRE.txt | awk -F " " '{printf "%s\n" , $6}' > temp.txt
cat temp_TRE1.txt | awk -F " " '{printf "\n" , $6}' > temp1.txt
cat temp_TRE2.txt | awk -F ":" '{printf "\n" , $8}' > temp2.txt

paste temp.txt temp1.txt temp2.txt > dani.txt

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::





:::::::::::::::::::::::::ERROR MESSAGES:::::::::::::::::::

++ awk -F ' ' '{printf "%s\n" , $6}'
awk: can't open {printf "%s\n" , $6}
++ cat temp_TRE1.txt
++ awk -F ' ' '{printf "\n" , $6}'
awk: can't open {printf "\n" , $6}
++ cat temp_TRE2.txt
++ awk -F : '{printf "\n" , $8}'
awk: syntax error near line 1
awk: bailing out near line 1
++ paste temp.txt temp1.txt temp2.txt

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Thanks a lot in avdance.

Best Regards.
 

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 08:56 PM.


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