Script No .
Definition:
Write a shell script to delete all the spaces from a given file.
Script:
clear
echo Enter the name of the file
read fn
if [ -f $fn ]
then
echo File $fn exists
cat $fn | tr -d " " > newfn
cat newfn
else
echo file doe not exists
fi
OR
echo "enter the filename"
read datafile
cat $datafile | tr -d '[:space:]'>newfile
OR
echo "Enter file name"
read fn
cat $fn | tr -d " "
cat [Link]