Maybe you should ask a different question. Why are you defining options to be applied to every invocation of grep you make in your .bashrc file if you don't want those options to be applied every time you invoke grep?
Have you considered defining an alias for grep that includes the options you want to apply only when grep is invoked interactively?
Because when i grep from the command line i don't want to have to type in this every time.
if i did an alias, it could easily be stomped on by another shell or script running or if i used a different grep like BSD, it would probably choke on an alias.
i'm really looking for something simple that would just strip out the '^[K' formatting characters like with
or
something that recognizes these as not to print or is so dumb that it ignores anything but the displayed string without attributes so that when i pipe something to my script file i don't have turn off or unset switches
I want to temporarily disable a user account on HP-UX at the start of a script and renable the account at the end of the script. What would be the best method on HP-UX to temporarily disable a user account? I know of the passwd -l option that will lock the account, but I do not see a flag for... (4 Replies)
hi to all
i'm a newbie on aix.
how would i block temporarily a few users in accessing our aix server so that other users may not be affected by th cpu usage...because if all of them accessing our server the CPU utilization goes high...
thanks
winky (3 Replies)
I want to do just what the title says. Here's why:
I am adapting a script that backups to a mount. In the script it has a catch where if the drive isn't RW then it unmounts and attempts to remount RW.
# attempt to remount the RW mount point as RW; else abort
$MOUNT -o remount,rw... (3 Replies)
Hi -
I'd like to know if it's possible to change the time on a Unix box temporarily, do some stuff, and then set it back to the correct time.
I'm testing some code that reads a time (in hours) from a config file, and does something at that time. I want to be able to run regression test... (5 Replies)
Issues:
Cron jobs are running everyday at 8PM to hot backup database, archivelog, and some other files.
Sometimes crontab scheduled backups need to be suspended for some other tasks randomly but doesn't happen all the time.
Objective:
I need to create simple script or command ( example :... (7 Replies)
Hi all
system Solaris 10 10/09 s10x_u8wos_08a X86
ufs file system
I would like to install SunStudio.
After the gui comes up it shows that i need to add swap space of at least 900m.
the command swap-s shows 880m free.
My question is can you temporarily increase swap by 1 or 2... (3 Replies)
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
LEARN ABOUT ULTRIX
zgrep
ZGREP(1) General Commands Manual ZGREP(1)NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)ZGREP(1)