10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Thanks for taking the time to view this!
I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern.
Drink a soda
Eat a banana
Eat multiple bananas
Drink an apple juice
Eat an apple
Eat multiple apples
I... (8 Replies)
Discussion started by: demmel
2. Shell Programming and Scripting
I have a large file1 which has many events like "2014010420" and following lines under each event that start with text . It has this form:
2014010420 num --- --- num ....
NTE num num --- num...
EFA num num --- num ...
LASW num num --- num... (9 Replies)
Discussion started by: phaethon
3. Shell Programming and Scripting
Here is the task that I was presented with:
I am dealing with about a 10,000 line input deck file for an analysis. About 10 separate blocks of around 25 lines of code each need to be updated in the input deck.
The input deck (deckToChange in the code below) comes with 2 separate files. File 1... (5 Replies)
Discussion started by: tiktak292
4. Shell Programming and Scripting
I would like to compare two files and return the number of matches found.
L1_Mus3 (3 Replies)
Discussion started by: paolo.kunder
5. Shell Programming and Scripting
I have a file that looks like this:
http://www.profile9.com... (3 Replies)
Discussion started by: locoroco
I usualy am able to google awk stuff but I can't find it so far and there are so many awking gurus here that I will give it a shot.
I want to print $1;$3;"$5 up to the $NF". In other words, I can have 1000 colums, but need to have $5 up to the end.
I started with the idea of... (2 Replies)
Discussion started by: plmachiavel
7. Emergency UNIX and Linux Support
I have a huge file like this
=245 this is testing
=245 this is testing1
=245 this is testing2
=245 this is testing3
here i have to pull out those lines having two =035 instead of alternative 035 and 245 i.e extract... (18 Replies)
Discussion started by: umapearl
8. Shell Programming and Scripting
Looking for awk statement that will match all lines starting with "# "
if ( $1 == \^"#" )
# of the server. If you would like to set these, please take out the
# pound (#) sign in front of one or all severities and set it equal to
# severity desired. For example, FATAL=3
#... (2 Replies)
Discussion started by: Arsenalman
9. Shell Programming and Scripting
I have file, which has the below content:
a (3 Replies)
Discussion started by: little_wonder
10. Shell Programming and Scripting
I need to have an if statement in a script to run if there are certain processes running. Easiest way I can see to do this is to run a ps and grep the results based on what I am looking for:
$ ps -ef | grep wtrs
webtrend 5046 1 0 May 12 ? 0:28 /webtrends/versions/6.1/wtrs_ui... (6 Replies)
Discussion started by: LordJezo