Get first and last line of file


bash way
(head -1; tail -1) < /etc/passwd

sed way
sed -n '1p; $p' /etc/passwd

awk way
awk 'NR==1; END { print }' /etc/passwd

Configure Putty.exe to save serial console output to a file

  Impact of procedure :  Performing the following procedure should not have a negative impact on your system. Open putty by double click...

Mais vistos