10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. UNIX for Dummies Questions & Answers
Not sure what I'm doing wrong here???? Trying to execute a grep command within a unix script and keep getting an error. Here is an example of the process I'm trying to execute
x=`grep -c $a $b`;
Execute script and this is what I get...... (3 Replies)
Discussion started by: macastor
3. Shell Programming and Scripting
Hi, im taking an entry Unix class, and as part of my lab assignment I have to copy all files in the /home/david/lab3 directory that have the file extension .save to your lab3/temp directory. I'm having trouble getting the grep to do anything worth while
I've been trying to do:
cp... (6 Replies)
Discussion started by: Critical jeff
4. Shell Programming and Scripting
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
5. UNIX for Advanced & Expert Users
I have encountered a problem with grep command. The max characters that grep can supported is 2048 as defined in LINE_MAX in hp-ux. I try setting $TK_GREP_LINE_MAX but this is not workable in HP-UX, anyone has experienced with setting the max characters supported by grep command.
Well,... (5 Replies)
Discussion started by: dwgi32
6. UNIX for Advanced & Expert Users
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
7. Shell Programming and Scripting
I am assaging a variable like this
current_dir ='ps -o user|grep -v'USER'|uniq' #this would print the user id "
this gives the output file with timeanddate .txt but not the userid
lets assume i have the userrid called... (4 Replies)
Discussion started by: ranga27
8. UNIX for Dummies Questions & Answers
Hello, im trying to grep the first 3 lines(starting with ERROR) from an output report and put it in a separate file... any help would be appreciated. Below is the message contained in the report
ERROR >Invalid basic data (CMOFCT-5070)
Cusip: 05950XAL0 CMO#508039 Tra# 11 rec# 175
Firts Int... (15 Replies)
Discussion started by: geekeezoid
9. UNIX for Dummies Questions & Answers
I need to grep two variables at the same time in shell programming.
Like today=Dec_16, and $1=5, how can I grep like this:
Thanks in advance! (5 Replies)
Discussion started by: whatisthis
10. Shell Programming and Scripting
I have read your article on grep it is very useful.
I have a problem using grep , can you please help me to sort out.
I am listing the contents of a file below :
##########1003134 05/04/1970F48371008 0736778 6123785090 0E10/13/1997
04/22/1998XSSUB 77 ... (8 Replies)
Discussion started by: Vittal Raj