Sponsored Content
Top Forums UNIX for Advanced & Expert Users Help needed Urgently... Thanks in advance Post 302345569 by jkumsi on Wednesday 19th of August 2009 03:01:47 PM
Old 08-19-2009
Help needed Urgently... Thanks in advance

You have a file called /opt/test/input.txt with the following information:

Code:
    man_aa_bld_100.410.040_CMD 08/14/2008  23:29:21 08/14/2008  23:31:10 SU 5339491/1
    man_aa_bld_100.410.050_CMD 08/14/2008  23:29:21 08/14/2008  23:31:11 SU 5339491/1
    man_aa_bld_100.410.060_CMD 08/14/2008  23:29:21 08/14/2008  23:31:14 SU 5339491/1
    man_aa_pro_100.425.000_CMD -----                -----                                          AC 5339491/0
    man_aa_pro_100.430.000_CMD -----                -----                                          AC 5339491/0
    man_aa_bld_100.410.070_CMD 08/14/2008  23:29:21 08/14/2008  23:30:23 SU 5339491/1
    man_aa_bld_100.410.080_CMD 08/14/2008  23:29:21 08/14/2008  23:30:27 SU 5339491/1
    man_aa_bld_100.410.090_CMD 08/14/2008  23:29:22 08/14/2008  23:31:05 SU 5339491/1
    man_aa_pro_100.420.000_CMD 08/14/2008  23:31:50 -----                             RU 5339491/1

Write the instruction to create a file called /opt/text/output.txt with the following results:
Code:
sendevent -E CHANGE_STATUS -s SUCCESS -P 1 -J man_aa_pro_100.425.000_CMD
  sendevent -E CHANGE_STATUS -s SUCCESS -P 1 -J man_aa_pro_100.425.000_CMD

Please note that from input.txt you have to take the rows with status AC (Lines in blue).

Last edited by vgersh99; 08-19-2009 at 04:05 PM.. Reason: code tags, PLEASE!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script needed urgently

Hi Frends, I am need of a small shell script. Kindly any body help me by giving me a small shell script to read first line in a file and extract date from the first line and store it in a variable... and after storing it in a variable the first and the last line of the file has to be deleted..... (2 Replies)
Discussion started by: vas_dba
2 Replies

2. UNIX for Dummies Questions & Answers

Major Help Urgently Needed!!!!

Right deleted Linux partition usig windows then went to format c:\ but had to exit window now pc ONLY boots into GNU Grub. Does anyone know how to format the hard drive now????? (3 Replies)
Discussion started by: billett05
3 Replies

3. Shell Programming and Scripting

A more advance Alias

Hey all, I want to go ahead and create a alias for the command /bin/passwd. But I want to do this so that it will/can detect if the -r option is added to the command as well...Can this be done... For example if the user enters: # passwd --> Alias will issue /bin/passwd -r # passwd -r... (0 Replies)
Discussion started by: msbutton27
0 Replies

4. Shell Programming and Scripting

help needed urgently

hi all i need help I am confused and stucked. Actually i am new in this scripting stuff. I want to give complete txt file as a input to a variable and then sort the data in the file according to the alpha numeric characters, as my text file contains ! and !! and !!! indicating Minor, Major and... (11 Replies)
Discussion started by: nabmufti
11 Replies

5. UNIX for Dummies Questions & Answers

Help NEEDED urgently on exceutable file

Hi , i amtrying to execute a file called bcs_maint which is the final executable for our project. Normally on some other servers ican execute it by just typing bcs_maint. yesterday i got a new worksattion for me and when i do the same it says /sbin/sh: bcs_maint : not found. What... (5 Replies)
Discussion started by: jagan_kalluri
5 Replies

6. UNIX for Advanced & Expert Users

Regarding Advance installation

Hi to all, I have one doubt in unix/linux installation. There are two systems in which one is Sparc system having no CD-Rom, No O/S and fresh Hard disk and another system is having windows O/S. Now, can i install unix or linux o/s in the Empty Sparc System by using other system which is... (1 Reply)
Discussion started by: sasidarvarma
1 Replies

7. Solaris

Advance 2 Days

Hi, Anyone can help me, how to used the advance 2 days? today is : 20090915 i need to get the date : 20090917 in the OS level Thanks, DBM (4 Replies)
Discussion started by: dba_macau
4 Replies

8. UNIX for Advanced & Expert Users

Please correct my script - Needed very urgently

hello all, I have a script, used to search for the strings from the set of 5 similar pattern file from the log dir. So here it goes . The input parameter is a part of the file name. When during the script execution, the script should parse the input parameter to original file's with the same... (1 Reply)
Discussion started by: raghunsi
1 Replies

9. Shell Programming and Scripting

Advance file parsing...

hi all i have a file of the format Time(starting from 0 in asc order) bytes service flags protocols e.g. 0, 0, 0, 56, 56 1, 524, 3, 6, 75 1, 624, 0, 43, 53 2, 72, 0, 43, 80 3, ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies

10. Shell Programming and Scripting

Help needed urgently. Look back for files in PERL

I have 3 variables $file =abc_2011_11_01.txt (current day file) $back = Yes $forward = No I need to search for 3 days back files / 3 days forward files if my current file is not present logic is, I need to download the current day file. If it is missing, i need to look out for... (1 Reply)
Discussion started by: irudayaraj
1 Replies
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 09:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy