Sponsored Content
Top Forums Shell Programming and Scripting Issue in awk parsing under while loop Post 302999061 by ananan on Tuesday 13th of June 2017 02:01:35 AM
Old 06-13-2017
i will be having files ending with *12581.log in only one of the returned path.
So i want to use that path for further processing.

simple terms awk will give three paths and definitely in one path *12581.log will be present.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

parsing logfiles (performance issue)

-------------------------------------------------------------------------------- Hi All, I am reading some logfiles and parsing data and printing to some textfile. Here is my code OLDIFS=$IFS IFS=' ' # just a newline, in single quotes while read data do if then #Parsing the... (4 Replies)
Discussion started by: subin_bala
4 Replies

2. UNIX for Dummies Questions & Answers

Issue with parsing config variables

I am using MKS tool kit on windows server. One config variable is defined in windows environment and I am trying to use that variable. # Below RootDir is defined in windows RootDir="\\f01\var" # in unix script details="$RootDir/src|$RootDir/tgt" src=`echo $details|awk -F '|' '{print... (1 Reply)
Discussion started by: madhukalyan
1 Replies

3. Shell Programming and Scripting

Parsing issue

Scripting geeks please advice how this script should parse the input parameter to File Name convention to search the strings. Enclosed is the basic view of the search architecture. ##******************************************************************************************************* ## ... (2 Replies)
Discussion started by: raghunsi
2 Replies

4. Shell Programming and Scripting

While loop with awk issue

Hi folks. I am trying to use a while loop along with awk to get the colums where 2 specific words are found. Here is the output of the command i run where i need to pull the column numbers if specific words are found: State Type Rebal Sector Block AU Total_MB Free_MB ... (3 Replies)
Discussion started by: Stephan
3 Replies

5. Shell Programming and Scripting

awk loop issue

Hi I am not able to solve this minor issue even after a lot of trial! Will be thankful if you can help me out. This is part of a awk script and the loop is self-explanatory - num_null_key=0 #for counting the number of null keys num_non_null_key=0 #for counting the number of non null... (2 Replies)
Discussion started by: nsinha
2 Replies

6. Shell Programming and Scripting

For loop, awk command issue

limit.csv data -------------- 5600050 38Nhava 400077 27Bomay rate.txt data ------------- 38NhaVA 27BomaY 27Bomay below is my script: for i in `cat limit.csv` do b=`awk '{print $1}' $i` (4 Replies)
Discussion started by: p_satyambabu
4 Replies

7. Shell Programming and Scripting

Issue with awk script parsing log file

Hello All, I am trying to parse a log file and i got this code from one of the good forum colleagues, However i realised later there is a problem with this awk script, being naive to awk world wanted to see if you guys can help me out. AWK script: awk '$1 ~ "^WRITER_" {p=1;next}... (18 Replies)
Discussion started by: Ariean
18 Replies

8. Shell Programming and Scripting

awk - 2 files comparison without for loop - multi-line issue

Greetings Experts, I need to handle the views created over monthly retention tables for which every new table in YYYYMMDD format, there is equivalent view created and the older table which might be dropped, the view over it has to be re-created over a dummy table so that it doesn't fail.... (2 Replies)
Discussion started by: chill3chee
2 Replies

9. Shell Programming and Scripting

Parsing a control file loop

Hi, Let's say I have a control file like this: RHEL apple "echo apple" RHEL bravo "ls -l bravo*" RHEL church "chmod church.txt" SUSE drive "chown user1 drive.txt" SUSE eagle "echo "eagle flies"" SUSE feather "ls -l feather*" HP-UX google "sed 's/^Google.*$/&\ ACTION: go to... (14 Replies)
Discussion started by: The Gamemaster
14 Replies

10. Shell Programming and Scripting

Parsing via sed issue

sorry I messed up the last post with too many mistakes and corrections so I closed it and opening a new one which should be clear to everyone .my apologies to the admins. I am using sun solaris and Linux , what I want is SED to print any string (or output it to a file preferably) that does... (2 Replies)
Discussion started by: boncuk
2 Replies
SVK::Log::ChangedPath(3)				User Contributed Perl Documentation				  SVK::Log::ChangedPath(3)

NAME
SVK::Log::ChangedPath - changes made to a path during in a revision SYNOPSIS
print "Path of change : ", $changed_path->path(), " "; print "Action : ", $changed_path->action(), " "; print "Property action: ", $changed_path->property_action(), " "; ... DESCRIPTION
An object of this class represents a path which was modified in a particular revision. It provides methods to determine how the path was modified. This class is intended for indirect use by log filters. Log filters may want to report about the paths that were modified during a particular revision, but they shouldn't have to know the details of how SVK determines those changes. Encapsulating that knowledge in this class allows log filters to focus on formatting, displaying and analyzing the logs. METHODS
new $root, $path_name, $path_entry SVK::Log::ChangedPath objects are usually created from SVK::Log::ChangedPaths and it's probably meaningless to construct them anywhere else. Nevertheless, here's a brief description. $root should be the return value from "SVK::Path->root()" $path_name is the key in the hash returned by "$root->paths_changed()" $path_entry is the corresponding value from that hash. action Returns a single character indicating the way in which the content of the path was changed. This letter is the same as the first column in the path line that you see when you do "svk log --verbose" copied_from If the path was copied from somewhere else in this revision, "copied_from()" returns the revision and path from which this path was copied. The values are returned as a list with items in that order. Namely, if ( $changed_path->is_copy() ) { my ($rev, $path) = $changed_path->copied_from(); print "Copied from $path in revision $rev "; } is_copy Returns true if the path was copied from somewhere else in this revision, otherwise, returns false. path Returns the full depot path for this changed path. property_action Returns a single character indicating the way in which the properties of the path were changed. This letter is the same as the second column in the path line that you see when you do "svk log --verbose" DIAGNOSTICS
None CONFIGURATION AND ENVIRONMENT
SVK::Log::ChangedPath requires no configuration files or environment variables. DEPENDENCIES
o SVK::Command::Log INCOMPATIBILITIES
None known. BUGS AND LIMITATIONS
None known. perl v5.10.0 2008-08-04 SVK::Log::ChangedPath(3)
All times are GMT -4. The time now is 11:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy