How to display many files in Backtrack

How to display many files in Backtrack

Write a script, which displays one or more files on the monitor, each with its own title page, notify user which files were displayed on the monitor and which were not.

Code

#!/bin/bash
echo " Current directry displayed below from the following list "
ls
echo "Press Enter to run the loop"
read b
files=`ls`
i=19
for f in $files
do
echo "----------------------------------------------------------"
echo "$i Title $f   ..."
cat $f
let i-=1
echo "

Loop Count is $i"
echo "-----------------------------------------------------------"
sleep 2
done

Screen Shot


How to display many files in Backtrack

Popular posts from this blog

Real marksheet using HTML

Salary Calculate Application in C#