sed -n '1p;$p' file
sed -n '1p;$p' file|awk '{print $2" "$3" "$6" "$7" "$11}'
awk 'NR==1{print $2" "$3" "$6" "$7" "$11}END{print $2" "$3" "$6" "$7" "$11}' file
grep -oP "\s*\K.*(?=500)" /countCodes || echo "0"
echo -e "hello world\nqqq\naaa" > file.txt
MYVAR=$(echo -e "hello world\nqqq\naaa")
echo "$MYVAR" | sed ...
echo "$MYVAR" | grep ...
cp ip.txt ip.txt.bak; sed -e 's/\/48$//g' ip.txt.bak | head -n -2 > ip.txt
sed -r "2,3s/(.*)/\/\/\1/g" test.txt