There has been a need for me to monitor a CSV file with many columns but without losing column headings.
Here is how it is done..
head -1 file.csv && tail -f file.csv
The
head -1
prints the first line of the CSV file which is usually the column headings and the &&
executes the next command which here is tail -f
i.e. get the last lines of the same file (file.csv) and monitor it (-f).
ధన్యవాదాలు (Thank you)
No comments:
Post a Comment