Thursday, April 16, 2009

Using Awk

Awk is a powerful tool for handling text files.

Here is an example of taking a file created with P4 filenenames and changing it to a script that will copy all the files listed in /tmp/sh pver to a secondary location:

awk '{print "cp gx-6.1.1"$1" SecondaryGX"$1}' /tmp/sh > out.sh

more later!

No comments:

Post a Comment