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
WMANAGER(1)						    BSD General Commands Manual 					       WMANAGER(1)

NAME
wmanager -- choose a window manager and launch it SYNOPSIS
wmanager [OPTIONS ...] DESCRIPTION
The wmanager program displays a choice of the window managers listed in the ~/.wmanagerrc file. When one is picked, the related command is written to standard output, intended to be used by shell scripts. If the program is exited without choosing a window manager, ``-1'' is written to standard output. -fg COLOR Set the foreground color. -bg COLOR Set the background color. -bg2 COLOR Set the widget background color -di[splay] host:n.n Set the X display. -dn[d], -nod[nd] Enable/disable drag & drop, probably does nothing. -g[eometry] WxH+X+Y Set the window size and location. -i[conic] Start as iconified. -k[bd], -nok[bd] Enable/disable keyboard support. -na[me] CLASSNAME Set the X window class. -s[cheme] SCHEME Unknown, probably does nothing useful. -ti[tle] WINDOWTITLE Set the window title. -to[oltips], -not[ooltips] Enable/disable tooltips, probably does nothing. EXAMPLE
To start using wmanager, create a ~/.wmanagerrc file - generally with wmanagerrc-update(1) - and add something like the following at the end of your ~/.xsession file: WM="$(wmanager -geometry +570+585)" ... exec $WM See also wmanager-loop(1) for a nicer way to start wmanager. SEE ALSO
wmanager(1), wmanager-loop(1), wmanagerrc-update(1), X(7x) HISTORY
The wmanager program was written by Meik Tessmer in 1999. This manual page was originally written in perldoc format by Tommi Virtanen in 2000, and converted to mdoc format by Peter Pentchev in 2008. AUTHORS
The wmanager program - Meik Tessmer <fuller@daemogorgon.net>. The manual page - Tommi Virtanen <tv@debian.org> and Peter Pentchev <roam@ringlet.net>. BSD
May 22, 2008 BSD
All times are GMT -4. The time now is 08:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy