Due to my lack of experience with script language, (shame for a Mac user) I have referred to several sources:
link seemed resolved with
ls *.extension | xargs -n 1 tail -n +2
This didn't for me, even after adding > merged.txt
at the end,
nor the following:
for f in *.txt
do
tail -n +2 $f >> /path/to/some/dir/with/files/file_name
done
I also tried sed -e'1d' $FILE
in replacement of the tail command. Didn't work.
tail -n +2 file_name.extension
, cat LIN_1994-11_0100.txt | tail -n +2
,
awk 'FNR != 1' *.extension
has no effect to the file.
I am uncertain if this has anything to do with the current issue.
Or whether the link is related to the issue.
If anyone could find the reason for this problem or way out of it..would be majorly grateful. I have transferred this issue from another community here to receive more insight if I could.
Asked by dia
(133 rep)
Jan 16, 2018, 06:17 PM
Last activity: Oct 6, 2024, 04:02 AM
Last activity: Oct 6, 2024, 04:02 AM