Sponsored Content
Top Forums Shell Programming and Scripting need a shell script to extract data from a log file. Post 302438913 by thegeek on Wednesday 21st of July 2010 07:22:46 AM
Old 07-21-2010
Explanation is not so clear.

Investigate the requirement further, google and try to do. Come with specific doubts ?! ( in general, give a script for this, is not a good thing. basically it is asking somebody else to do your work ).
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to extract data using UNIX shell script?

Hello All, I am starting with UNIX. Any help is highly appreciated. How to extract data using UNIX shell script? And how do you export data using UNIX shell scripts into Microsoft Excel format? Thank you. (3 Replies)
Discussion started by: desiondarun
3 Replies

2. Shell Programming and Scripting

extract data from xml- shell script using awk

Hi, This is the xml file that i have. - <front-servlet platform="WAS4.0" request-retriever="SiteMinder-aware" configuration-rescan-interval="60000"> <concurrency-throttle maximum-concurrency="50" redirect-page="/jsp/defaulterror.jsp" /> - <loggers> <instrumentation... (5 Replies)
Discussion started by: nishana
5 Replies

3. Shell Programming and Scripting

shell-script which extract data from log file

give me a shell-script which extract data from log file on a server by giving date and time as input (for both start time and end time) and it will give the logs generated during the given time as output. (4 Replies)
Discussion started by: abhishek27
4 Replies

4. Shell Programming and Scripting

Help with shell script to extract data from XML file

Hello Scripting Gurus, I need help with extracting data from the XML file using shell script. The data is in a large XML and I need to extract the id values of all completedworkflows. Here is a sample of it. Input and output data is also in the attached text files. <wfregistry>... (5 Replies)
Discussion started by: yajaykumar
5 Replies

5. Shell Programming and Scripting

Need shell script to extract data from oracle database

shell script (4 Replies)
Discussion started by: frns5
4 Replies

6. Shell Programming and Scripting

regular expression with shell script to extract data out of a text file

hi i am trying to extract some specific data out of a text file using regular expressions with shell script that is using a multiline grep .. and the tool i am using is pcregrep so that i can get compatibility with perl's regular expressions for a sample data like this, i am trying to grab... (6 Replies)
Discussion started by: vemkiran
6 Replies

7. UNIX for Dummies Questions & Answers

Shell script to extract data from csv file based on certain conditions

Hi Guys, I am new to shell script.I need your help to write a shell script. I need to write a shell script to extract data from a .csv file where columns are ',' separated. The file has 5 columns having values say column 1,column 2.....column 5 as below along with their valuesm.... (1 Reply)
Discussion started by: Vivekit82
1 Replies

8. UNIX for Dummies Questions & Answers

Shell script to extract data from csv file

Hi Guys, I am new to shell script.I need your help to write a shell script. I need to write a shell script to extract data from a .csv file where columns are ',' separated. The file has 7 columns having values say column 1,column 2.....column 7 as below along with their values. Name, Address,... (7 Replies)
Discussion started by: Vivekit82
7 Replies

9. Shell Programming and Scripting

Shell script to extract data from csv file

Hi everyone, I have a csv file which has data with different heading and column names as below. Static Data Ingested ,,,,,,,,,,,,Known Explained Rejections Column_1,column_2,Column_3,Column_4,,Column_6,Column_7,,% Column_8,,Column_9 ,Column_10 ,... (14 Replies)
Discussion started by: Vivekit82
14 Replies

10. UNIX for Beginners Questions & Answers

Shell script to extract data in a file

I have this 5GB file, and i want to extract from the file particulars pattern. this is my script: // count=`grep -wc "MSISDN" file_name` k=1 >OUTPUT >OUTPUT_Final while do cat file_name | awk -F":" -v var="$k" '$1=="MSISDN" {m++}m==var{print; exit}' >> OUTPUT cat file_name |awk -F":"... (33 Replies)
Discussion started by: gillesi
33 Replies
fverify(8)						      System Manager's Manual							fverify(8)

NAME
fverify - verify software subsets SYNOPSIS
/usr/lbin/fverify [-npy] OPTIONS
Specifies error reporting only. The fverify command reports errors but makes no fixes. Specifies partial checking. The fverify command does not report changes in size or checksum for files marked as volatile. All other changes are reported. Specifies noninteractive fix- ing. The fverify command fixes permissions, UIDs, and GIDs of any files that have incorrect values for these attributes. No user input is required. DESCRIPTION
The fverify command reads subset inventory records from standard input and verifies that the attributes for the files on the system match the attributes listed in the corresponding records. When invoked with no options, fverify reports errors to standard output and prompts for confirmation before making corrections. You must have root privileges to use this command. Missing files and inconsistencies in file size, checksum, user ID, group ID, permissions, and file type are reported. If inconsistencies in ID or permissions are detected, fverify prompts you for correction. Missing directories are created. All errors and informational mes- sages are appended to the /var/adm/smlogs/fverify.log file. Files in a subset can be marked as volatile. These files (for example, /etc/passwd) are expected to change after installation. When used with the -p option, fverify does not report an inconsistency if these files have a size or checksum that does not match the product's inventory. The setld utility uses fverify when installing subsets to guarantee correct installation. RESTRICTIONS
Problems with file size, type, and checksum cannot be corrected. Errors in permissions for symbolic links are neither reported nor fixed. Because subset inventories give file names as relative paths, fverify must be invoked from the root directory to which the software is installed. Many of the files on the system cannot be read or modified without appropriate privilege. Attempting to run fverify without appropriate privilege can result in a great number of access errors. ERRORS
fverify: out of memory Explanation: Not enough memory is available from the system. pathname: cannot stat (error-message) Explanation: The file pathname is listed in the inventory but is not on the system. The error-message provides further information. pathname: file type x should be y Explanation: The file is listed in the inventory as being type y, but the copy of the file on the disk is type x. The file type codes are: Block device Character device Directory containing one or more files Regular file Hard link Named pipe (FIFO) Symbolic link UNIX domain socket pathname: checksum n should be m Explanation: The checksum of pathname was expected to be m but is actually n. pathname: size n should be m Explanation: The size of file pathname but was expected to be m but is actually n. pathname: gid n should be m Explanation: The group ID for pathname was expected to be m but is actually n. pathname: uid n should be m Explanation: The user ID for pathname was expected to be m but is actually n. pathname: permissions string1 should be string2 Explanation: The permissions for pathname were expected to be string2 but are actually string1. The format of string1 and string2 is the same as that used by the ls command. Creating directory pathname Explanation: The directory pathname is listed in the input inventory but does not exist on the system. The fverify command attempts to create it. cannot correct pathname (error-message) Explanation: A problem reported with pathname could not be corrected. The error-message explains the failure. pathname corrected Explanation: A problem with pathname was successfully corrected. Cannot create dir pathname (error-message) Explanation: The fverify program failed in its attempt to create a directory that it found missing. The error-message explains the failure. n verification errors encountered. m corrections performed. Explanation: Before exiting, the fverify program prints these statistics describing what had been done. If fverify executes correctly, its exit status is the total number of verification errors detected minus the total number of successful fixes. EXAMPLES
The following command sequence reports verification problems in the hypothetical OATDCB100 subset: cd / /usr/lbin/fverify -n < /usr/.smdb./OATDCB100.inv The previous example reports changes to volatile files. The following command sequence ignores changes to these files: cd / /usr/lbin/fverify -np < /usr/.smdb./OATDCB100.inv The following command sequence fixes all problems in the same subset without requiring user intervention: cd / /usr/lbin/fverify -y < /usr/.smdb./OATDCB100.inv The following command sequence fixes all problems in the same subset interactively: cd / /usr/lbin/fverify < /usr/.smdb./OATDCB100.inv FILES
Subset inventory files Log File SEE ALSO
Commands: ls(1), setld(8) Files: stl_inv(4) Guide to Preparing Product Kits fverify(8)
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy