I am trying to do some thing like this ..
In a file , if pattern found insert new pattern at the begining of the line containing the pattern.
example:
in a file I have this.
gtrow0unit1/gctunit_crrownorth_stage5_outnet_feedthru_pin
if i find feedthru_pin want to insert !! at the... (7 Replies)
Hi All ,
I am newbie to linux shell scripting , below are the contents of my log file ,
i want the lines between a begin pattern and a end pattern
for an instance , my begin Pattern is "Transaction Begins for Usr"
and end pattern is "Transaction Ends for Usr" into another file
Sample file... (1 Reply)
Hello All,
I have a file which is having below type of data,
Jul 19 2011 | 123456
Jul 19 2011 | 123456
Jul 20 2011 | 123456
Jul 20 2011 | 123456
Here I wanted to grep for date pattern as below, so that it should only grep "Jul 20" OR "Jul ... (9 Replies)
Hi
I am facing the below problem.
I have set of lines in which i have to search for only the line which matches with the pattren "/" only.
input:-
/*+ some text */
/*+ some text */
/* Remove rows from a table of survey results. */
/* Add a survey respondent's name and answers. */
/*... (7 Replies)
I have an array containing bunch of characters. I have to check this array for specific character and if "Not Found than" use a goto statement to go to USAGE
set options = (A B C D E F)
@ i = 0
while ($i <= ${#options})
if ($options != "F" || $options != "D") then
goto USAGE
endif
@... (1 Reply)
Am new on hp-ux ..
Found missing recursive pattern search grep -iR option that's there on Linux .
Is any one know any way with grep or any advance command available on hp-ux using which i can search a word say "DbFnamesDatLimit" in all files under /etc on hp-ux in single step .
my /etc... (3 Replies)
Hello Guyz
I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline
ABC
DEF
LMN
EFG
HIJ
LMN
OPQ
In the above text i need to... (8 Replies)
Hi,
I am trying to do pattern search using grep command. But i donot know what mistake i'm doing. I am not getting the expected Result. could any one please help me out?
$ cat b.ksh
AasdjfhB
57834B
86234B
472346B
I want to print the line which is starting with either A or 8 and... (10 Replies)
Hello,
I have a bunch of zip files like
SS_SAMPLE_101_123.zip
SS_101_123.zip
SS_SAMPLE_121_345.zip
SS_SAMPLE_222_678.zip
SS_123_890.zip
SS_.zip
The 'ls' should search and list the files such as SS_101_123.zip and SS_123_890.zip alone. Could you please guide me with this.... (5 Replies)
Discussion started by: tinufarid
5 Replies
LEARN ABOUT DEBIAN
rapt-file
RAPT-FILE(1)RAPT-FILE(1)NAME
rapt-file - APT package searching utility -- search remotely
SYNOPSIS
rapt-file [ options ] [ action ] [ pattern ]
DESCRIPTION
rapt-file is a command line tool for searching files in packages for the APT package management system. It differs from apt-file in that
it works with remote package indices, so it doesn't need to download full Contents files.
find Alias for search.
list List the contents of a package matching the pattern pattern. This action is very close to the dpkg -L command except the package
does not need to be installed or fetched.
search Search in which package a file is included. A list of all packages containing the pattern pattern is returned.
rapt-file will only search for filenames, not directory names. This is due to the format of the Contents files it searches.
show Alias for list.
OPTIONS -a, --architecture architecture
Sets architecture to architecture. This option is useful if you search a package for a different architecture from the one installed
on your system. It determines how the $ARCH variable in sources.list is expanded (but it does not influence the search in any other
way).
-l, --package-only
Only display package name; do not display file names.
-v, --verbose
Run rapt-file in verbose mode.
-h, --help
Display a short help screen.
FILES
/etc/apt/sources.list
Locations to fetch package contents from.
/etc/apt/sources.list.d/
Directory with additional sources.list snippets
AUTHOR
rapt-file was written by Enrico Zini <enrico@debian.org>.
May 2012 RAPT-FILE(1)