programming

Bash Programming

Redirection Put these at the top of your scripts to direct bash to send all standard out and standard error created after the statement  to $log_file.  One way or another the following statements will send everything created by the current script, sub-shells, etc. to $log_file.  Your code will be cleaner Read more…

By dan, ago
programming

AWK Scripts

I need to process text every day.  At times it is useful to find counts and I found that using AWK is the easiest way to do so.  Say I had a data file that looks like this: row col1 col2 col3 0 3500.352 10l1.1 2356.4 1 292.2 3100.0 1997.99 2 Read more…

By dan, ago