7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Ok I got the following to work by removing the parentheses arount $year and it works. Can a kind soul please explain this behavior. Also, to my topic question, am I using curly braces correctly in the IF statement? The intent is to check for a leap year. If the year is divisible by 400 then no need... (6 Replies)
Discussion started by: Riker1204
6 Replies
2. Shell Programming and Scripting
awk -v pat="$pattern" 'NR == 1 {print $0}; $0 ~ pat {print $0}' infile.csv > outfile.csv
The first row of my file contains headers so I want them. Otherwise, I want only lines containing the BASH variable pattern which I am passing to awk with -v.
This is giving me all the lines containing... (6 Replies)
Discussion started by: Michael Stora
6 Replies
3. UNIX for Dummies Questions & Answers
It would be convenient to be able to combine awk tests. For example, suppose that I do this query:
awk '$1 != "Bob" || $1 != "Linda" {print $2}' datafileIs there a reasonable way to combine the conditions into a single statement? For example, in egrep, I can do:
egrep -v "Bob|Linda"... (4 Replies)
Discussion started by: treesloth
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
- The first question I have concerns a very fundamental aspect of a unix OS. Specifically, does unix treat everything as a file (ie a directory is just a type of file)?
- The reason I ask is that I am trying to determine which BASH unary operator I would to use to determine whether or not... (1 Reply)
Discussion started by: msb65
1 Replies
5. Shell Programming and Scripting
hi all,
i will have a shell scripting exam by thursday and i need a solved exams to get ready for my exam.that is very important for me.i really appreciate your help. (0 Replies)
Discussion started by: shaimaa
0 Replies
6. Linux Benchmarks
Dhrystone 2 without register variables 858767.1 lps (10 secs, 6 samples)
Dhrystone 2 using register variables 879713.0 lps (10 secs, 6 samples)
Arithmetic Test (type = arithoh) 2880633.4 lps (10 secs, 6 samples)
Arithmetic Test (type = register) 166883.2 lps (10... (0 Replies)
Discussion started by: kiwi_bloke
0 Replies
7. News, Links, Events and Announcements
FYI:
http://www.cnn.com/2003/TECH/ptech/09/24/amd.athlon.ap/index.html (0 Replies)
Discussion started by: Neo
0 Replies