Sponsored Content
Top Forums UNIX for Dummies Questions & Answers display the result of wc -l with words before and after the result Post 302190657 by vijay_0209 on Wednesday 30th of April 2008 06:55:23 AM
Old 04-30-2008
hi

try this
echo "showrev -p is:`showrev -p | wc -l`"
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Display result one page at a time

hi how can i display the result on the screen one page at a time? say i search for .txt files and return the result on the screen one page at a time. (4 Replies)
Discussion started by: nickaren
4 Replies

2. Shell Programming and Scripting

Outputting formatted Result log file from old 30000 lines result log<help required>

Well I have a 3000 lines result log file that contains all the machine data when it does the testing... It has 3 different section that i am intrsted in 1) starting with "20071126 11:11:11 Machine Header 1" 1000 lines... "End machine header 1" 2) starting with "20071126 12:12:12 Machine... (5 Replies)
Discussion started by: vikas.iet
5 Replies

3. Shell Programming and Scripting

display result from user input

how can i only display the result according to user input? For example: i have a data file(in the attachement), when the user enter "1" it will only display whole records with pid from the data file matches to the users entered. (13 Replies)
Discussion started by: thms_sum
13 Replies

4. Shell Programming and Scripting

Pick up the return code for every iteration and display the result only once in loop.

Hi All, I amlearning UNIX scripting. I have a small query. I would be thankful if any one helps me out. I have a below piece of code which delets the files. If file dosent have the permissions to delete a particular file I have used 2>>operator to track the error code. But my objective is... (1 Reply)
Discussion started by: manas6
1 Replies

5. Shell Programming and Scripting

csh script to search for files and display result

Hello all. I'm a long time browser, first time poster...Be gentle :-) I don't use csh much, but have been asked to make a small script for our HP-UX systems to search for a report file(s) or summary file and display the result (I was using vuepad, but this probably is just complicating... (4 Replies)
Discussion started by: neillsm
4 Replies

6. UNIX for Dummies Questions & Answers

what is the result of this?

ls -A $variable (2 Replies)
Discussion started by: prathimahsc
2 Replies

7. Shell Programming and Scripting

Bash script to display result in table

My script gives the following result. Is it possible to display the same in table format ? 1. rex_best Latest feeds are not avaialable. The last feed was generated on 2012-05-17 File Name = ekb_best_20120517_010949_665.tar.gz The Number of entry elements = 4209539 2. rex_genre Latest... (2 Replies)
Discussion started by: kishorekumar87
2 Replies

8. Shell Programming and Scripting

awk to parse file and display result based on text

I am trying using awk to open an input file and check a column 2/field $2 and if there is a warning then that is displayed (variantchecker): G not found at position 459, found A instead. The attached Sample1.txt is that file. If in that column/field there is a black space, then the text after... (6 Replies)
Discussion started by: cmccabe
6 Replies

9. Shell Programming and Scripting

How to compare the current result with previous line result.?

Hi Gurus, I have requirement to compare current result with previous reuslt. The sample case is below. 1 job1 1 1 job2 2 1 job3 3 2 job_a1 1 2 job_a2 2 2 job_a3 3 3 job_b1 1 3 job_b2 2 for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies
showrev(1M)															       showrev(1M)

NAME
showrev - show machine, software revision, and patch revision information SYNOPSIS
/usr/bin/showrev [-a] [-p | -p -R root_path] [-w] [-c command] [-s hostname] showrev displays revision information for the current hardware and software. With no arguments, showrev shows the system revision informa- tion including hostname, hostid, release, kernel architecture, application architecture, hardware provider, domain, and kernel version. If a command is supplied with the -c option, showrev shows the PATH and LD_LIBRARY_PATH and finds out all the directories within the PATH that contain it. For each file found, its file type, revision, permissions, library information, and checksum are printed as well. The following options are supported: -a Print all system revision information available. Window system and patch information are added. -c command Print the revision information about command. -p Print only the revision information about patches. -R root_path Define the full path name of a directory to use as the root_path. By specifying the root path, showrev retrieves the revi- sion information about the patch from package system information files located under a directory tree starting at root_path. The root_path can be specified when retrieving installed patch information in a client from a server, for exam- ple, /export/root/client1. Note - The root file system of any non-global zones must not be referenced with the -R option. Doing so might damage the global zone's file system, might compromise the security of the global zone, and might damage the non-global zone's file system. See zones(5). -s hostname Perform this operation on the specified hostname. The -s operation completes correctly only when hostname is running Solaris 2.5 or compatible versions. -w Print only the OpenWindows revision information. OUTPUT
Varies, based on flags passed. If no flags are passed, output similar to the following appears: Hostname: system1 Hostid: 7233808e Release: 5.10 Kernel architecture: sun4u Application architecture: sparc Hardware provider: Sun_Microsystems Domain: a.network.COM Kernel version: SunOS 5.10 generic The following error values are returned: 0 Successful completion. >0 An error occurred. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWadmc | +-----------------------------+-----------------------------+ arch(1), ldd(1), mcs(1), sum(1), patchadd(1M), attributes(5) For the -s option to work when hostname is running a version of Solaris prior to 2.5, the Solstice AdminSuite must be installed on host- name. 6 Apr 2005 showrev(1M)
All times are GMT -4. The time now is 05:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy