10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
5, jaya, male, 4-5-90, single
6, prakash, male, 5-4-84, married
7, raghavi, female,... (12 Replies)
Discussion started by: jayaP
I found a very short but very efficient program to handle big sequence file (>30GB), but could not understand it.
Wrote to the author but no reply, probably because the program needs comprehensive knowledge of C.
Can any C expert "walk me thru" the two header files... (13 Replies)
Discussion started by: yifangt
3. UNIX for Dummies Questions & Answers
I have been out of the loop with my UNIX/Linux for several years and have been working mainframe. I was trying to create a short two line program to create a list of email addresses as a variable and then send the list a file. Here is what I did and I thought that is was right, but I am... (3 Replies)
Discussion started by: jbrider
4. Shell Programming and Scripting
I use UBUNTU 12.04.
I want to write a short program using awk to select some lines in a file based on a second file.
My first file has this format with about 400,000 lines and 47 fields:
SNP1 1 12.1
SNP2 1 13.2
SNP3 1 45.2
SNP4 1 23.4
My second file has this format:
SNP3... (1 Reply)
Discussion started by: Homa
5. Shell Programming and Scripting
File contian below data...
I am new to unix and per scirpt...
First two records are valid and last record is invalid,how to get the valid records...
Please help me unix or perl script.
Murali (5 Replies)
Discussion started by: muralikri
6. Shell Programming and Scripting
For the below problem, awk script is needed..
input file :
i need to check from first line.
reference is jack. jill need to verified with next line jack. if found print
jill & jack combination hill1
jack & jill &... (0 Replies)
Discussion started by: vasanth.vadalur
7. UNIX for Advanced & Expert Users
I'm running a simulator and I'm noticing an slow increase in memory for long simulations such that the simulation has to end because of a lack of memory. A colleague of mine ran Valgrind memcheck and reported that nothing of interest was reported other than known mem leaks. My advisor... (2 Replies)
Discussion started by: pl4u
8. Shell Programming and Scripting
I currently use this construction to check whether a certain program is installed:
if ; then
cd /usr/ports/databases/sqlite3 && make install clean
echo "sqlite already installed"
Is this method recommended? Is this an effective method, ie sufficiently robust for... (3 Replies)
Discussion started by: figaro
9. Shell Programming and Scripting
I have a cron process that runs daily and generates a log file. The process writes the date it ran and also any errors to the log file.
I need to write a script that will check if the process ran yesterday and also look for the keyword 'ERROR'. If it did not run yesterday or if it found... (0 Replies)
Discussion started by: tatchel
10. UNIX for Dummies Questions & Answers
How would I go about getting the previous date on the server? I'm out of ideas...I am thinking that I could do it using the date command, but I am unable to find any information on doing it. For example if the current date is April 17th 2008 it would be (20080417) <- (YYYYMMDD). I need the previous... (4 Replies)
Discussion started by: developncode