Sponsored Content
Full Discussion: Find a string in a path
Operating Systems Linux Find a string in a path Post 302887393 by Vikash163 on Friday 7th of February 2014 08:30:42 AM
Old 02-07-2014
Thnx for reply but grep is taking so long time to fetch the data.
Can we achieve this by "awk" command....whose performance
is also good. Please help me on this.

Thanks,
Vks
 

10 More Discussions You Might Find Interesting

1. Solaris

Please help me find the PATH that I need to be on :)

I am learning UNIX through the School of Hard Knocks, I have very limited exposure to it. I managed to install Solaris 10 on my machine recently, and have downloaded and installed Sun Studio 11. When the installation of Sun Studio was complete, the GUI displayed the following: (Bourne shells)... (7 Replies)
Discussion started by: trmn8r
7 Replies

2. Shell Programming and Scripting

How To Replace A String In File With A String Containing Windows File Path

Hi, I have a file with the following contents # Lines that start with a # are comments. # # Calling TOAD like this will perform a comparison from command line : # # "C:\Program Files\Quest Software\Toad for Oracle 9.6\toad.exe" -c... (2 Replies)
Discussion started by: rajan_san
2 Replies

3. Shell Programming and Scripting

How to find the path

Hi Iam new to this forum, could you pleae advise for below question iam send path as input before proceding i need to validate the path if it is exit or not if not it show path id not exist if the path is exits iam sending file name as input to search the file on the paricular... (5 Replies)
Discussion started by: saic
5 Replies

4. Shell Programming and Scripting

Resolved: Building a string with a path in it

I know this is probably simple, but the brain cells that originally stored my shell scripting classes from 10+ years ago have long since been drowned in beer. I need to create a string (to append to a file) containing a path derived from the current path. Basically, I want to append "/something"... (3 Replies)
Discussion started by: Spetnik
3 Replies

5. Shell Programming and Scripting

Remove path string from file (string contains "/")

This is the way sed -i 's/home/$USER/.config/hello_there//g' /home/$USER/.gnomerc But, as far as I saw you cannot add any "/" in the string you want to remove.... So, what should I do in order to remove this path (which contains "/") ?:confused: (7 Replies)
Discussion started by: hakermania
7 Replies

6. Shell Programming and Scripting

Find and replace string from file which contains variable and path - SH

e.g. /home/$USER/.config replace it with "" (empty) Is this possible? I think you should play a bit with sharps ## and sed:b: (2 Replies)
Discussion started by: hakermania
2 Replies

7. Shell Programming and Scripting

Determining whether given string is path or not

I have an issue while determing whether given string is unix path or not There is a text file which is normally a report in that at some place we have unix path as shown below /opt/smart/dev/eur/sources/sqr and not unix path as shown below Threshold Year/Month/Ref/ActLine/OUC Is there... (3 Replies)
Discussion started by: lalitpct
3 Replies

8. Shell Programming and Scripting

if PATH contains a certain string problem!

Hi I am using MKS Toolkit c shell. I want to basically check if my PATH variable already contains a certain path directory so I tried this (it didnt work!): if: Expression Syntax if ( echo $path |grep -c c:/PROGRA~1/blah/blah ) then please help me get this little statement to work. ... (3 Replies)
Discussion started by: vas28r13
3 Replies

9. Shell Programming and Scripting

"find . -printf" without prepended "." path? Getting path to current working directory?

If I enter (simplified): find . -printf "%p\n" then all files in the output are prepended by a "." like ./local/share/test23.log How can achieve that a.) the leading "./" is omitted and/or b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies

10. Shell Programming and Scripting

Find string in file and find the all records by string

Hello I would like to get know how to do this: I got a big file (about 1GB) and I need to find a string (for instance by grep ) and then find all records in this file based on a string. Thanks for advice. Martin (12 Replies)
Discussion started by: mape
12 Replies
SVK::Path(3)						User Contributed Perl Documentation					      SVK::Path(3)

NAME
SVK::Path - SVK path class SYNOPSIS
See below DESCRIPTION
The class represents a node in svk depot. root Returns the root representing the file system of the revision at the anchor. Give optional pool (null to use default), otherwise use the internal root of the path object. Be careful if you are using the root object but not keeping the path object. same_repos Returns true if all @other targets are from the same repository as this one. same_source Returns true if all @other targets are mirrored from the same source is_mirrored Returns the mirror object if the path is mirrored. Returns additional path component if used in array context. normalize Normalize the revision to the last changed one. as_depotpath Makes target depotpath. Takes $revision number optionally. path Returns the full path of the target even if anchorified. descend Makes target descend into $entry universal Returns corresponding SVK::Target::Universal object. depotpath Returns depotpath of the target copy_ancestors Returns a list of "(path, rev)" pairs, which are ancestors of the current node. nearest_copy(root, path, [pool]) given a root object (or a target) and a path, returns the revision root where it's ancestor is from another path, and ancestor's root and path. related_to Check if $self is related to another target. copied_from ($want_mirror) Return the nearest copy target that still exists. If $want_mirror is true, only return one that was mirrored from somewhere. $self->seek_to($revision) Return the "SVK::Path" object that $self is at $revision. Note that we don't have forward tracing, so if <$revision is greater than "$self-"revision>, a "SVK::Path" at <$revision> will be returned. In other words, assuming "foo@N" for "-r N foo@M" when N > M. as_url($local_only, [ $path, $rev ]) Returns (url, revision) pair. node_id () Returns the node id of this path object. SEE ALSO
SVK::Path::Checkout perl v5.10.0 2008-08-04 SVK::Path(3)
All times are GMT -4. The time now is 12:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy