10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I Have a text file with several thousand lines of text.
Occasionally there will be a "sysAlive" line of text (every so often)
What would be an awk command to print every line of text, and to put in incrementing counter ONLY on the "sysAlive" lines
lineAAA a b c d... (4 Replies)
Discussion started by: ajp7701
2. UNIX for Advanced & Expert Users
I want to get the only application name from the server.
if i give $ ps -ef | grep bw.
It will show all BW process with entire path. It will little confuse to list out the process. Can anyone have syntax to get only the instance name. I need this for be, hawk,ems also.
Please... (2 Replies)
Discussion started by: ckchelladurai
3. Windows & DOS: Issues & Discussions
Ok, running tsm on 2008R2, and I have the gnu awk and grep installed...I want to only capture inactive (I) files inside of the backup...I can get this to work on linux, but because windows interprets " ' ` differently, i can't get it to print out right...Here's what I have:
so basically... (8 Replies)
Discussion started by: nextreme
4. Shell Programming and Scripting
I want to grep some information out of the dmidecode but when I type
dmidecode | grep Memory
I get several instances of the word. Is there a way I can just choose which instance I want to display? (8 Replies)
Discussion started by: jcnewton13
5. Shell Programming and Scripting
I'm having a bit of trouble getting this to work using either sed or grep. It's possible awk might be the ticket I need as well, but my regulat expression skills aren't quite up to the task for doing this.
I'm looking to grep for the string ERROR from the following log up until any... (6 Replies)
Discussion started by: terrell
6. Shell Programming and Scripting
Hi all, i am new to unix scripting in ksh or any shell for that matter. I have downloaded a xml file from a website and saved on my local harddrive. inside the xml, the same tag is listed multiple times.
<title>Friday</title>... (6 Replies)
Discussion started by: scubasteve39
7. Shell Programming and Scripting
I need to be able to search for a beginning line header, then use grep or something else to get the very next instance of a particular string, which will ALWAYS be in "Line5". What I have is some data that appears like this:
...... (4 Replies)
Discussion started by: Akilleez
8. Shell Programming and Scripting
How do I use awk to find the last occurence of a string in a file? (3 Replies)
Discussion started by: locoroco
9. Shell Programming and Scripting
How do I use awk to find the NR of first instance of a specific string after eg NR==10?
I need to find the first instance of the word "class" after a specific NR. (2 Replies)
Discussion started by: locoroco
10. Shell Programming and Scripting
I have an input text that looks like this (comes already sorted):
on Caturday 22 at 10:15, some event
on Caturday 22 at 10:15, some other event
on Caturday 22 at 21:30, even more events
on Funday 23 at 11:00, yet another event
I need to delete all the matching words between the lines, from... (2 Replies)
Discussion started by: GrinningArmor