I have a file that will have zero or more lines of data. What I need to do first is check the file to see if it has zero or 1 line of data. If it does I need to copy it to a specific directory as is, otherwise I need to run a function (which I already have) against it before sending it to the same specific directory.
Current script example:
I suppose what I am looking for is an IF/ELSE script stating:
Any ideas regarding this issue would be greatly appreciated. Thank you.
Current script example:
Code:
gawk -f Function.awk input
I suppose what I am looking for is an IF/ELSE script stating:
Code:
gawk -f IF input has zero or 1 line of data then copy to directory ELSE Funtion.awk input
Any ideas regarding this issue would be greatly appreciated. Thank you.