Skip to main content
added 49 characters in body
Source Link
FIBA
  • 131
  • 1
  • 2
#delete ten times the last history line    
for i in $(seq 1 10)
do
  n=$(history 1 | awk '{print $1}')
  history -d $n
done
for i in $(seq 1 10)
do
  n=$(history 1 | awk '{print $1}')
  history -d $n
done
#delete ten times the last history line    
for i in $(seq 1 10)
do
  n=$(history 1 | awk '{print $1}')
  history -d $n
done
Source Link
FIBA
  • 131
  • 1
  • 2

for i in $(seq 1 10)
do
  n=$(history 1 | awk '{print $1}')
  history -d $n
done