Ubuntu Pastebin

Paste from sylar at Thu, 19 Jan 2017 13:52:41 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!/bin/bash
if [ $1 == 'y']
then
echo how about u enter the directory name?
read answer

randi=`ls $answer |wc -l`

echo $randi
exit
else

echo enter file name
read file
ass=`cat $file |wc -l`
echo $ass
fi
Download as text