String of exclusions failed.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting String of exclusions failed.
# 8  
Old 10-18-2018
Perhaps your grep takes multiple patterns divided by newline?
Then it can shrink to
Code:
grep -v "\
number
number
...
number"

This User Gave Thanks to MadeInGermany For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed or awk command to replace a string pattern with another string based on position of this string

here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb cat dump.sql INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies

2. Shell Programming and Scripting

to extract string from main string and string comparison

continuing from my previous post, whose link is given below as a reference https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569 consider there is create table commands in a file for eg: CREATE TABLE `Blahblahblah` ( `id` int(11) NOT NULL... (2 Replies)
Discussion started by: vivek d r
2 Replies

3. UNIX for Advanced & Expert Users

Port redirection with exclusions

Hi folks, I have an application that is acting up. I have another machine with a replacement application on it but because of the naming structure clients are using I cannot change the name to the replacement machine as it is also used to access other applications. The host OS is Centos 5.6... (0 Replies)
Discussion started by: beddo
0 Replies

4. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

5. Solaris

Find command with exclusions

Hi All I need to find the biggest files on our system BUT excluding some directories. I.E Find / -size +10000 (excluding 'platform'|'db' ..etc) |sort -n > file I tried grep -v but that can only do one expression at a time. Tried /usr/xpg4/bin/grep but cant use -v Please help Chris (5 Replies)
Discussion started by: JTS911
5 Replies

6. AIX

to identify failed pv

Hi friends,.... am sindhiya, i have joined as AIX level 1 support. help me to identify the failed pv in vg which has some 4 physical volumes? (2 Replies)
Discussion started by: sindhiya
2 Replies

7. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies

8. Shell Programming and Scripting

Failed to replace string with "sed"

Hi folks, I have the following configuration file: tofu:/tmp # cat bitbandConfig.properties maestroIp=10.10.10.10 maestroPort=2020 adminPlayPath=<Streaming Agent IP>:2021/streamingGateway/GetPlayList ###This part should not be changed### adminPlayVODProtocol=http username=iptv... (7 Replies)
Discussion started by: nir_s
7 Replies

9. Shell Programming and Scripting

Failed to substitute string with "<>"

Hi folks, I have the following template file: application.filePath.core = /core-RIGHTV/Html/ application.filePath.xbip = /xbip-RIGHTV/Html/ translator.rootContext = /translator_<schame_name>/ I need to substitute the string in the third line "<schema_name>" with $SCHEMA_NAME I ran the... (4 Replies)
Discussion started by: nir_s
4 Replies

10. Shell Programming and Scripting

Failed to insert string into file before line

Hi folks, I have the following program: #! /bin/ksh set -xv export grepDataSource="</data-sources>" export DB_HOST=tornado export SCHEMA_NAME=IAS10G export dataSource=data-sources.xml sourceString="<data-source class=\"oracle.jdbc.pool.OracleConnectionCacheImpl\" name=\"RiGHTvDS\"... (7 Replies)
Discussion started by: nir_s
7 Replies
Login or Register to Ask a Question
vprintf(3int)															     vprintf(3int)

Name
       vprintf, vfprintf, vsprintf - print formatted output of a varargs argument list

Syntax
       #include <stdio.h>
       #include <varargs.h>

       int vprintf ( format, ap )
       char *format;
       va list ap;

       int vfprintf ( stream, format, ap )
       FILE *stream;
       char *format;
       va list ap;

       int vsprintf ( s, format, ap )
       char *s, *format;
       va list ap;

Description
       The international functions and are similar to the standard I/O functions.

       Likewise,  the  vprintf functions are similar to the printf functions except they are called with an argument list as defined by instead of
       with a variable number of arguments.

       The international functions allow you to use the %digit$ conversion character in place of the % character  you  use  in	the  standard  I/O
       functions.   The digit is a decimal digit n from 1 to 9.  The international functions apply conversions to the nth argument in the argument
       list, rather than to the next unused argument.

       You can use the % conversion character in the international functions.  However, you cannot mix the % conversion character with the %digit$
       conversion character in a single call.

       You  can  indicate  a  field  width or precision by an asterisk (*) instead of a digit string in format strings containing the % conversion
       character. If you use an asterisk, you can supply an integer arg that specifies the field width or precision.  In format strings containing
       the  %digit$  conversion character, you can indicate field width or precision by the sequence *digit$.  You use a decimal digit from 1 to 9
       to indicate which argument contains an integer that specifies the field width or precision.

       The conversion characters and their meanings are identical to

       You must use each digit argument at least once.

Examples
       #include <stdio.h>
       #include <varargs.h>

       main()
       {
       char *function_name = "vpr";
       char *arg1 = "hello world";
       int arg2 = 2;
       char *arg3 = "study";

       char *i18nfmt = "%1$s %3$d
";

       test(function_name, i18nfmt, arg1, arg2, arg3);
       }

       test(va_alist)
       va_dcl
       {
       va_list args;
       char *fmt;
       char string[1024];

       va_start(args);

       (void)printf("function %s: ", va_arg(args, char *));

       fmt = va_arg(args, char *);

       (void)vprintf(fmt, args);

       va_end(args);
       }

See Also
       setlocale(3), scanf(3int), printf(3s), printf(3int), vprintf(3s), putc(3s), scanf(3s), stdio(3s), varargs(3)
       Guide to Developing International Software

																     vprintf(3int)