#!/bin/bashecho -n "Enter name of the file:"read filenameif [ -e $filename ]thenecho 'Last modification time is' `ls -l $filename | cut -d" " -f 6,7,8`elseecho "file does not exist"fi
👍
Thank you for upload required code
Glad it helped you!
#!/bin/bash
ReplyDeleteecho -n "Enter name of the file:"
read filename
if [ -e $filename ]
then
echo 'Last modification time is' `ls -l $filename | cut -d" " -f 6,7,8`
else
echo "file does not exist"
fi
👍
DeleteThank you for upload required code
ReplyDeleteGlad it helped you!
Delete