I am writing a UNIX script that reads the size of a text file and if the file is of some size it should print the text file. If it is not an else loop executes and the process c
Simply put it as-
var=$(ls -l ${filepath}/{filename}.lst | awk '{print $5}')