I would like to thanks you all, who ever help the others...!!
First, I would like to thanks ennstate for his valuable coding he provide. With special thanks too, for ghostdog74, for making the coding more simpler looking..!! Thanks you all experts member's..!!
Second, I have tried the coding and I have succeeded for doing the (first part of my) job. With slight modification on it..!!
However, I have just add END statement before the PRINT command. And I saved the coding as a file, for example, as an abc.awk script file. That's all. ( I wrote this detail, to be useful for other to follow).
But, there are some problems..!!
The coding gave only the last line result..!! or only one result from this script..?? I will show the output from this coding later.
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)
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)
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)
i have a file which lists the following
T2323
T3445
T67666,T6534,T4546
T7878
i need to extract the numeric part only(ie,without T).
i tried this script
awk '{print substr($0,2,length($0))}' pmt2.txtOutput
2323
3445
67666,T6534,T4546as u can see the numbers coming after "," remains the... (2 Replies)
i have the following lines
T2345
T3435 - bugfixed and running
T5654 fixed and committed
T34541:- fixed and committed
i need to extract only the T part (eg:T2345) ,ie i dont want any special characters after it.
i have been trying with grep and egrep but with no luck.
pls help (11 Replies)
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)