Problem with Grep command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem with Grep command
# 8  
Old 10-16-2012
Really good reference doc Jim.. thank u

---------- Post updated at 09:33 AM ---------- Previous update was at 09:30 AM ----------

Jim, Can you suggest me good docs for Unix. I am just beginner of Unix programming, I want to improve my skills in Unix programming.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies

2. Shell Programming and Scripting

Grep command giving different result for different users for same command

Hello, I am running below command as root user #nodetool cfstats tests | grep "Memtable switch count" Memtable switch count: 12 Where as when I try to run same command as another user it gives different result. #su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Discussion started by: Pushpraj
10 Replies

3. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies

4. Shell Programming and Scripting

Problem with "find" and "grep" command

I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank). In a first approach I coded: find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt But this doesn't work. I got an error (under Ubuntu): grep:... (5 Replies)
Discussion started by: pstein
5 Replies

5. UNIX for Advanced & Expert Users

Problem with grep command options in Sunsolaris

Hi Experts I need the following output from grep command of Sunsolaris on a set of input files. Output:........ 1st search string from file1 2nd search string from file1 3rd search string from file1 1st search string from file2 2nd search string from file2 3rd search string from... (3 Replies)
Discussion started by: ks_reddy
3 Replies

6. Shell Programming and Scripting

can anyone help with shell script command about searching word with grep command?

i want to search in the current directory all the files that contain one word for example "hello" i want to achieve it with the grep command but not with the grep * (2 Replies)
Discussion started by: aintour
2 Replies

7. Shell Programming and Scripting

grep problem

hi, i need to get a count of the lines that contain 2 given patterns. eg: Line1 is <PATTERN1>blahblahblah</PATTERN1>then more text <PATTERN2>blahblahblah</PATTERN2> Line 2 is <PATTERN1>blahblahblah</PATTERN1>then some more text<INVALIDPATTERN>whatever</INVALIDPATTERN> I want to get a count of... (1 Reply)
Discussion started by: King Nothing
1 Replies

8. Solaris

Grep problem

Hi all, I get this this error message grep: illegal option -- q Usage: grep -hblcnsvim pattern file when I execute this command rsh <host ip> " ps -ef | grep '26' " & ur cooperation is appreciated (0 Replies)
Discussion started by: AshAdmin
0 Replies

9. UNIX for Advanced & Expert Users

how to exclude the GREP command from GREP

I am doing "ps -f" to see my process. but I get lines that one of it represents the ps command itself. I want to grep it out using -v flag, but than I get another process that belongs to the GREP itself : I would like to exclude # ps -f UID PID PPID C STIME TTY TIME CMD... (2 Replies)
Discussion started by: yamsin789
2 Replies

10. Shell Programming and Scripting

Grep Problem

I have a large file that I am grepping to find a certain string. grep 'C:\Data\Directory\Test.txt' test.txt It can not find it even though I know it is in there . I know that there is a problem with the backslashes but I can't get it to work. I tried grep... (2 Replies)
Discussion started by: lesstjm
2 Replies
Login or Register to Ask a Question
xorp(1) 						      General Commands Manual							   xorp(1)

NAME
xorpsh -- XORP Command Shell SYNOPSIS
xorpsh [-c command] [-t directory] [-e] [-h] [-v] DESCRIPTION
This manual page documents briefly the xorpsh command. This manual page was written for the Debian distribution because the original program does not have a manual page. xorpsh is the command used to interact with a eXtensible Open Router Platform (XORP) router. This command starts up a command line inter- face (CLI), that allows the configuration of the router and monitoring of the router state. The xorpsh command provides an interactive command shell to a XORP user, similar in many ways to the role played by a Unix shell. In a production router xorpsh might be set up as an user's login shell - they would login to the router via ssh and be directly in the xorpsh. It can also be run directly from the Unix command line. xorpsh should normally be run as a regular user; it is neither necessary or desirable to run it as root. If an user is to be permitted to make changes to the running router configuration, that user needs to be in the Unix group xorp. The Debian package installation automatically sets up both a xorp user and a xorp group to which this user belongs. However, any user can run the xorpsh command unless locally restricted by the administrator. OPTIONS
xorpsh allows the following options: -h Show summary of options. -v Print verbose information. -c command Specify command(s) to execute. -t directory Specify templates directory. -e Exit immediately if cannot connect to the rtrmgr SEE ALSO
xorp_rtrmgr (8) This program is documented fully in the Xorp User Manual, chapter Command Structure, available at /usr/share/doc/xorp-doc/ in Debian sys- tems when the xorp-doc package is installed. AUTHOR
XORP is Copyright (c) 2001-2009 XORP, Inc. This manual page was written by Javier Fernandez-Sanguino jfs@debian.org for the Debian system (but may be used by others). For licensing details please see /usr/share/doc/xorp/copyright. xorp(1)