apt-get update; apt-get install dnsutils
The dnsutils (could be bind-utils for non-Debian based distros) package contains the host, dig, nslookup and nsupdate commands – used for DNS querying and update
apt-get update; apt-get install dnsutils
The dnsutils (could be bind-utils for non-Debian based distros) package contains the host, dig, nslookup and nsupdate commands – used for DNS querying and update
This will add the common slash / at the end of each line in the text file and save it. If you want just to see the result use ‘ -e ‘ instead of ‘ -i ‘.
sed -i "s/.*/&\//" filename
What it does: The script will create certain number of files with certain size. It takes two arguments – first is the number of files and the second is the size of each file ( in kilobytes ).
Usage: ./script.sh 100 1
(this will create 100 files 1MB each)
Code:
#!/bin/bash filecount=$1; blocksize=$2; counter=1; while [[ $counter -le $filecount ]]; do echo Copying $counter; dd if=/dev/zero of=filename$counter bs=$2k count=1024 let "counter +=1"; done