Instruction
stringlengths 13
387
| Response
stringlengths 1
532
| Text
stringlengths 158
1.06k
|
---|---|---|
Count the number of lines in all ".txt" files | cat *.txt | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of lines in all ".txt" files ### Response: cat *.txt | wc -l |
Count the number of lines in all files in the xargstest/ directory tree that match pattern 'file??' | find xargstest/ -name 'file??' | sort | xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of lines in all files in the xargstest/ directory tree that match pattern 'file??' ### Response: find xargstest/ -name 'file??' | sort | xargs wc -l |
Count the number of lines in each .java file in the current directory tree | find . -name "*.java" -exec wc -l {} \; | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of lines in each .java file in the current directory tree ### Response: find . -name "*.java" -exec wc -l {} \; |
Count the number of lines in every regular .rb file in the current directory tree | find . -name "*.rb" -type f -exec wc -l \{\} \; | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of lines in every regular .rb file in the current directory tree ### Response: find . -name "*.rb" -type f -exec wc -l \{\} \; |
Count the number of lines in every regular .rb file in the current directory tree | find . -name "*.rb" -type f -print0 | xargs -0 wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of lines in every regular .rb file in the current directory tree ### Response: find . -name "*.rb" -type f -print0 | xargs -0 wc -l |
Count the number of non localhost users | who | grep -v localhost | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of non localhost users ### Response: who | grep -v localhost | wc -l |
Count the number of open files for PID "$PYTHONPID" every 2 seconds | watch "ls /proc/$PYTHONPID/fd | wc -l" | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of open files for PID "$PYTHONPID" every 2 seconds ### Response: watch "ls /proc/$PYTHONPID/fd | wc -l" |
Count the number of regular files in directory tree ${DIRECTORY} that contain a vowel in their names | find ${DIRECTORY} -type f -print | sed -e 's@^.*/@@' | grep '[aeiouyAEIOUY]' | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of regular files in directory tree ${DIRECTORY} that contain a vowel in their names ### Response: find ${DIRECTORY} -type f -print | sed -e 's@^.*/@@' | grep '[aeiouyAEIOUY]' | wc -l |
Count the number of regular files in the current directory that contain a vowel in their names | find . -maxdepth 1 -type f -iname '*[aeiouy]*' -printf ".\n" | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of regular files in the current directory that contain a vowel in their names ### Response: find . -maxdepth 1 -type f -iname '*[aeiouy]*' -printf ".\n" | wc -l |
Count the number of regular files in the current directory tree | find . -type f | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of regular files in the current directory tree ### Response: find . -type f | wc -l |
Count the number of regular files with 755 permission under current directory tree | find . -type f -perm 755 | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of regular files with 755 permission under current directory tree ### Response: find . -type f -perm 755 | wc -l |
Count the number of regular files with case insensitive name pattern $srchfor under 'teste2' directory tree | find teste2 -type f -iname "$srchfor"|wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of regular files with case insensitive name pattern $srchfor under 'teste2' directory tree ### Response: find teste2 -type f -iname "$srchfor"|wc -l |
Count the number of the regular files residing under and below ./randfiles/ | find ./randfiles/ -type f | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of the regular files residing under and below ./randfiles/ ### Response: find ./randfiles/ -type f | wc -l |
Count the number of times each person is logged in on the system | who | awk '{print $1}' | sort | uniq -c | sort -n | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of times each person is logged in on the system ### Response: who | awk '{print $1}' | sort | uniq -c | sort -n |
Count the number of times that a single "-----------\n" separated record contains both "A=2" and "dummy=2" and the number of records that do not have "dummy=2" in compressed file "file.gz" | zcat file.gz | awk -v RS="-----------\n" '/A=2[ ,\n]/ && /dummy=2[ ,\n]/{count++} !/dummy=2[ ,\n]/{other++} END{print "Final counter value=",count, "; other=", other}' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of times that a single "-----------\n" separated record contains both "A=2" and "dummy=2" and the number of records that do not have "dummy=2" in compressed file "file.gz" ### Response: zcat file.gz | awk -v RS="-----------\n" '/A=2[ ,\n]/ && /dummy=2[ ,\n]/{count++} !/dummy=2[ ,\n]/{other++} END{print "Final counter value=",count, "; other=", other}' |
Count the number of times that a single "-----------\n" separated record contains both "A=2" and "dummy=2" in compressed file "file.gz" | zcat file.gz | awk -v RS="-----------\n" '/A=2[ ,\n]/ && /dummy=2[ ,\n]/{count++} END{print "Final counter value=",count}' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of times that a single "-----------\n" separated record contains both "A=2" and "dummy=2" in compressed file "file.gz" ### Response: zcat file.gz | awk -v RS="-----------\n" '/A=2[ ,\n]/ && /dummy=2[ ,\n]/{count++} END{print "Final counter value=",count}' |
Count the number of total files and folders under current directory tree | find . -print0 | tr -cd '\0' | wc -c | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of total files and folders under current directory tree ### Response: find . -print0 | tr -cd '\0' | wc -c |
Count the number of unique 3 to 6 character file extensions are in the current directory tree | find . -type f -name "*.*" | grep -o -E "\.[^\.]+$" | grep -o -E "[[:alpha:]]{3,6}" | awk '{print tolower($0)}' | sort | uniq -c | sort -rn | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of unique 3 to 6 character file extensions are in the current directory tree ### Response: find . -type f -name "*.*" | grep -o -E "\.[^\.]+$" | grep -o -E "[[:alpha:]]{3,6}" | awk '{print tolower($0)}' | sort | uniq -c | sort -rn |
Count the number of unique duplicate lines in "file1" and "file2" combined | sort file1 file2 | uniq -d | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of unique duplicate lines in "file1" and "file2" combined ### Response: sort file1 file2 | uniq -d | wc -l |
Count the number of unique file extensions in the current directory tree | find . -type f | sed -e 's/.*\.//' | sed -e 's/.*\///' | sort | uniq -c | sort -rn | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of unique file extensions in the current directory tree ### Response: find . -type f | sed -e 's/.*\.//' | sed -e 's/.*\///' | sort | uniq -c | sort -rn |
Count the number of unique lines in sorted file "a.txt" compared to sorted file "b.txt" | comm -23 a.txt b.txt | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of unique lines in sorted file "a.txt" compared to sorted file "b.txt" ### Response: comm -23 a.txt b.txt | wc -l |
Count the number of users logged in | who | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of users logged in ### Response: who | wc -l |
Count the number of users logged in minus one | who | sed 1d | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the number of users logged in minus one ### Response: who | sed 1d | wc -l |
Count the occurrence of 2 in the string '1 1 2 2 2 5' | echo "1 1 2 2 2 5" | tr ' ' $'\n' | grep -c 2 | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the occurrence of 2 in the string '1 1 2 2 2 5' ### Response: echo "1 1 2 2 2 5" | tr ' ' $'\n' | grep -c 2 |
Count the toal number of lines in all .py files in current directory tree | find . -name *.py -exec wc -l {} \; | awk '{ SUM += $0} END { print SUM }' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the toal number of lines in all .py files in current directory tree ### Response: find . -name *.py -exec wc -l {} \; | awk '{ SUM += $0} END { print SUM }' |
Count the total number of lines in all "*.gz" files in the current directory tree after decompression | find . -type f -name '*.gz' | xargs zcat | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the total number of lines in all "*.gz" files in the current directory tree after decompression ### Response: find . -type f -name '*.gz' | xargs zcat | wc -l |
Count the total number of lines in all HTML files under /usr/src that contain string "foo" | find /usr/src -name "*.html" -execdir /usr/bin/grep -H "foo" {} ';' | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count the total number of lines in all HTML files under /usr/src that contain string "foo" ### Response: find /usr/src -name "*.html" -execdir /usr/bin/grep -H "foo" {} ';' | wc -l |
Count total number of lines in all *.txt file in cuuent directory . | find . -type f -name '*.txt' -exec wc -l {} \; | awk '{total += $1} END{print total}' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count total number of lines in all *.txt file in cuuent directory . ### Response: find . -type f -name '*.txt' -exec wc -l {} \; | awk '{total += $1} END{print total}' |
Count total number of lines in all *txt files in current directory | wc -l `find . -type f -name '*.txt' ` | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count total number of lines in all *txt files in current directory ### Response: wc -l `find . -type f -name '*.txt' ` |
Count total number of lines in all files below current directory. | find . -type f -exec wc -l {} \; | awk '{ SUM += $0} END { print SUM }' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Count total number of lines in all files below current directory. ### Response: find . -type f -exec wc -l {} \; | awk '{ SUM += $0} END { print SUM }' |
Counts all *.mod files in a /boot/grub/ folder. | ls -l /boot/grub/*.mod | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all *.mod files in a /boot/grub/ folder. ### Response: ls -l /boot/grub/*.mod | wc -l |
Counts all business days in a current month. | cal -h | cut -c 4-17 | tail -n +3 | wc -w | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all business days in a current month. ### Response: cal -h | cut -c 4-17 | tail -n +3 | wc -w |
Counts all files in a DIR_NAME folder and subfolders. | find DIR_NAME -type f | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all files in a DIR_NAME folder and subfolders. ### Response: find DIR_NAME -type f | wc -l |
Counts all files in a current folder and subfolders. | find -type f -printf '\n' | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all files in a current folder and subfolders. ### Response: find -type f -printf '\n' | wc -l |
Counts all files in a current folder and subfolders. | find . -type f | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all files in a current folder and subfolders. ### Response: find . -type f | wc -l |
Counts all files in a current folder and subfolders. | find `pwd` -type f -exec ls -l {} \; | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all files in a current folder and subfolders. ### Response: find `pwd` -type f -exec ls -l {} \; | wc -l |
Counts all lines in $i file. | cat $i | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all lines in $i file. ### Response: cat $i | wc -l |
Counts all non-blank lines in the $i file. | sed '/^\s*$/d' $i | wc -l ## skip blank lines | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all non-blank lines in the $i file. ### Response: sed '/^\s*$/d' $i | wc -l ## skip blank lines |
Counts all top-level files in a current folder. | ls -1 | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts all top-level files in a current folder. ### Response: ls -1 | wc -l |
Counts lines in each *.cpp, *.c, *.h file. | wc -l `find . -type f \( -name "*.cpp" -o -name "*.c" -o -name "*.h" \) -print` | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each *.cpp, *.c, *.h file. ### Response: wc -l `find . -type f \( -name "*.cpp" -o -name "*.c" -o -name "*.h" \) -print` |
Counts lines in each *.php file sorted by file path. | find . -name '*.php' -type f | sort | xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each *.php file sorted by file path. ### Response: find . -name '*.php' -type f | sort | xargs wc -l |
Counts lines in each *.php file, sorted by number of lines, descending. | find . -name '*.php' -type f | xargs wc -l | sort -nr | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each *.php file, sorted by number of lines, descending. ### Response: find . -name '*.php' -type f | xargs wc -l | sort -nr |
Counts lines in each *.php file. | find . -name '*.php' -type f | xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each *.php file. ### Response: find . -name '*.php' -type f | xargs wc -l |
Counts lines in each *.php file. | wc -l $(find . -name "*.php") | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each *.php file. ### Response: wc -l $(find . -name "*.php") |
Counts lines in each *.php file. | wc -l `find . -name "*.php"` | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each *.php file. ### Response: wc -l `find . -name "*.php"` |
Counts lines in each *.php file. | wc -l `tree -if --noreport | grep -e'\.php$'` | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each *.php file. ### Response: wc -l `tree -if --noreport | grep -e'\.php$'` |
Counts lines in each of *.php files in a current folder and subfolders and prints total count as well. | find . -name "*.php" | xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each of *.php files in a current folder and subfolders and prints total count as well. ### Response: find . -name "*.php" | xargs wc -l |
Counts lines in each of *.php files in a current folder and subfolders and prints total count as well. | wc -l **/*.php | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each of *.php files in a current folder and subfolders and prints total count as well. ### Response: wc -l **/*.php |
Counts lines in each of *.php files in a current folder and subfolders and prints total count. | find . -name '*.php' | awk '{gsub(" ","\\ ", $0);print $0}' |xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each of *.php files in a current folder and subfolders and prints total count. ### Response: find . -name '*.php' | awk '{gsub(" ","\\ ", $0);print $0}' |xargs wc -l |
Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests' folder and prints total count as well. | find . -name tests -prune -o -type f -name '*.php' | xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests' folder and prints total count as well. ### Response: find . -name tests -prune -o -type f -name '*.php' | xargs wc -l |
Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests*' folders and prints total count as well. | find . -name "*.php" -not -path "./tests*" | xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests*' folders and prints total count as well. ### Response: find . -name "*.php" -not -path "./tests*" | xargs wc -l |
Counts lines in each of *.php files in current folder with subfolders and prints total count as well. | find . -name '*.php' | xargs wc -l | sort -r | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in each of *.php files in current folder with subfolders and prints total count as well. ### Response: find . -name '*.php' | xargs wc -l | sort -r |
Counts lines in file $file and prints number only. | wc -l $file | awk '{print $1}'; | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in file $file and prints number only. ### Response: wc -l $file | awk '{print $1}'; |
Counts lines in file $file ignoring '//' commented lines, lines with spaces only and empty lines. | cat $file | sed '/\/\//d' | sed '/^\s*$/d' | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in file $file ignoring '//' commented lines, lines with spaces only and empty lines. ### Response: cat $file | sed '/\/\//d' | sed '/^\s*$/d' | wc -l |
Counts lines in file 'filename' ignoring empty lines and lines with spaces only. | cat 'filename' | grep '[^ ]' | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in file 'filename' ignoring empty lines and lines with spaces only. ### Response: cat 'filename' | grep '[^ ]' | wc -l |
Counts lines in file fileName ignoring empty lines and lines with spaces only. | awk '!/^[[:space:]]*$/{++x} END{print x}' filename | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines in file fileName ignoring empty lines and lines with spaces only. ### Response: awk '!/^[[:space:]]*$/{++x} END{print x}' filename |
Counts lines of 'file' file. | wc -l file | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines of 'file' file. ### Response: wc -l file |
Counts lines of /dir/file.txt file. | cat /dir/file.txt | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines of /dir/file.txt file. ### Response: cat /dir/file.txt | wc -l |
Counts lines of /dir/file.txt file. | wc -l /dir/file.txt | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines of /dir/file.txt file. ### Response: wc -l /dir/file.txt |
Counts lines of /etc/fstab file. | cat /etc/fstab | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines of /etc/fstab file. ### Response: cat /etc/fstab | wc -l |
Counts lines of all *.txt files in a current folder. | cat *.txt | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines of all *.txt files in a current folder. ### Response: cat *.txt | wc -l |
Counts lines of myfile.txt file. | cat myfile.txt | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines of myfile.txt file. ### Response: cat myfile.txt | wc -l |
Counts lines with all-cased word 'null' in file 'myfile.txt'. | grep -n -i null myfile.txt | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts lines with all-cased word 'null' in file 'myfile.txt'. ### Response: grep -n -i null myfile.txt | wc -l |
Counts non-blank lines (lines with spaces are considered blank) in all *.py files in a current folder. | grep -v '^\s*$' *.py | wc | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts non-blank lines (lines with spaces are considered blank) in all *.py files in a current folder. ### Response: grep -v '^\s*$' *.py | wc |
Counts non-empty lines in file fileName. | cat fileName | grep -v ^$ | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts non-empty lines in file fileName. ### Response: cat fileName | grep -v ^$ | wc -l |
Counts number of *.php files in a current folder and subfolders. | find . -name '*.php' | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts number of *.php files in a current folder and subfolders. ### Response: find . -name '*.php' | wc -l |
Counts number of occurences of all ip addresses in 'ip_addresses' file, and prints all addresses with number of occurences in a descending order. | cat ip_addresses | sort | uniq -c | sort -nr | awk '{print $2 " " $1}' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts number of occurences of all ip addresses in 'ip_addresses' file, and prints all addresses with number of occurences in a descending order. ### Response: cat ip_addresses | sort | uniq -c | sort -nr | awk '{print $2 " " $1}' |
Counts number of processors and saves in variable NUMCPU. | NUMCPU=$(grep $'^processor\t*:' /proc/cpuinfo |wc -l) | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts number of processors and saves in variable NUMCPU. ### Response: NUMCPU=$(grep $'^processor\t*:' /proc/cpuinfo |wc -l) |
Counts sum of non-empty lines from all .php files in a current folder. | find . -name "*.php" | xargs grep -v -c '^$' | awk 'BEGIN {FS=":"} { cnt = cnt + $2} END {print cnt}' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts sum of non-empty lines from all .php files in a current folder. ### Response: find . -name "*.php" | xargs grep -v -c '^$' | awk 'BEGIN {FS=":"} { cnt = cnt + $2} END {print cnt}' |
Counts the number of lines in *.php and *.inc files in a current folder and subfolders. | find . -name '*.php' -o -name '*.inc' | xargs wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts the number of lines in *.php and *.inc files in a current folder and subfolders. ### Response: find . -name '*.php' -o -name '*.inc' | xargs wc -l |
Counts total lines in PHP and JS files. | find . -name '*.js' -or -name '*.php' | xargs wc -l | grep 'total' | awk '{ SUM += $1; print $1} END { print "Total text lines in PHP and JS",SUM }' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts total lines in PHP and JS files. ### Response: find . -name '*.js' -or -name '*.php' | xargs wc -l | grep 'total' | awk '{ SUM += $1; print $1} END { print "Total text lines in PHP and JS",SUM }' |
Counts total lines in all *.php files in the current directory recursively | find . -name '*.php' -type f | xargs cat | wc -l | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts total lines in all *.php files in the current directory recursively ### Response: find . -name '*.php' -type f | xargs cat | wc -l |
Counts total number of only lines with alphanumeric symbols in all *.php files in a current folder and subfolders. | find . -name '*.php' | xargs cat | awk '/[a-zA-Z0-9]/ {i++} END{print i}' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Counts total number of only lines with alphanumeric symbols in all *.php files in a current folder and subfolders. ### Response: find . -name '*.php' | xargs cat | awk '/[a-zA-Z0-9]/ {i++} END{print i}' |
Creae a tarball 'files.tar.gz' containing all regular files under current directory tree that are newer than 2013-12-04 and older than 2013-12-05 | find . -type f -name "*" -newermt 2013-12-04 ! -newermt 2013-12-05 | xargs -I {} tar -czvf files.tar.gz {} | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Creae a tarball 'files.tar.gz' containing all regular files under current directory tree that are newer than 2013-12-04 and older than 2013-12-05 ### Response: find . -type f -name "*" -newermt 2013-12-04 ! -newermt 2013-12-05 | xargs -I {} tar -czvf files.tar.gz {} |
Create 1000 files each file having a number from 1 to 1000 named "file000" to "file999" | seq 1 1000 | split -l 1 -a 3 -d - file | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create 1000 files each file having a number from 1 to 1000 named "file000" to "file999" ### Response: seq 1 1000 | split -l 1 -a 3 -d - file |
Create 5 empty .txt files | echo "a.txt b.txt c.txt d.txt z.txt" | xargs touch | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create 5 empty .txt files ### Response: echo "a.txt b.txt c.txt d.txt z.txt" | xargs touch |
Create 6-letter named temporary directory in a folder path that is provided as the first positional parameter, and save the path to it in a variable 'tmp' | tmp=$(mktemp -d $(dirname "$1")/XXXXXX) | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create 6-letter named temporary directory in a folder path that is provided as the first positional parameter, and save the path to it in a variable 'tmp' ### Response: tmp=$(mktemp -d $(dirname "$1")/XXXXXX) |
Create 6-letter named temporary file in a folder path $file1, and save the path to it in a variable 'tmpfile' | tmpfile=$(mktemp $(dirname "$file1")/XXXXXX) | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create 6-letter named temporary file in a folder path $file1, and save the path to it in a variable 'tmpfile' ### Response: tmpfile=$(mktemp $(dirname "$file1")/XXXXXX) |
Create 6-letter named temporary file in a folder path that is provided as the first positional parameter, and save the path to it in a variable 'tmpfile' | tmpfile=$(mktemp $(dirname "$1")/XXXXXX) | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create 6-letter named temporary file in a folder path that is provided as the first positional parameter, and save the path to it in a variable 'tmpfile' ### Response: tmpfile=$(mktemp $(dirname "$1")/XXXXXX) |
Create 998 directories one inside another with sequential names folder1, folder2, ... folder998 and create an additional folder named 'folder9991000' inside the last 'folder998' directory | mkdir -p folder$( seq -s "/folder" 999 )1000 | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create 998 directories one inside another with sequential names folder1, folder2, ... folder998 and create an additional folder named 'folder9991000' inside the last 'folder998' directory ### Response: mkdir -p folder$( seq -s "/folder" 999 )1000 |
Create a compressed archive from "www" and split the contents into files of at most 1073741824 bytes and use prefix "www-backup.tar." | tar czf - www|split -b 1073741824 - www-backup.tar. | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a compressed archive from "www" and split the contents into files of at most 1073741824 bytes and use prefix "www-backup.tar." ### Response: tar czf - www|split -b 1073741824 - www-backup.tar. |
Create a compressed archive named 'my_directory.tar.gz' with files inside directory 'my_directory' without including the directory entry 'my_directory' itself | tar -czvf my_directory.tar.gz -C my_directory . | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a compressed archive named 'my_directory.tar.gz' with files inside directory 'my_directory' without including the directory entry 'my_directory' itself ### Response: tar -czvf my_directory.tar.gz -C my_directory . |
Create a compressed archive of "/home" and split the contents into files with at most 4000 MiB each and use prefix "/media/DRIVENAME/BACKUPNAME.tgz" | tar --one-file-system -czv /home | split -b 4000m - /media/DRIVENAME/BACKUPNAME.tgz | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a compressed archive of "/home" and split the contents into files with at most 4000 MiB each and use prefix "/media/DRIVENAME/BACKUPNAME.tgz" ### Response: tar --one-file-system -czv /home | split -b 4000m - /media/DRIVENAME/BACKUPNAME.tgz |
Create a copy of index.html in all directories in current directory whose name contains Va, pausing for confirmation before overwriting any existing files - names may not contain spaces. | find . -mindepth 1 -maxdepth 1 -type d| grep \/a |xargs -n 1 cp -i index.html | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a copy of index.html in all directories in current directory whose name contains Va, pausing for confirmation before overwriting any existing files - names may not contain spaces. ### Response: find . -mindepth 1 -maxdepth 1 -type d| grep \/a |xargs -n 1 cp -i index.html |
Create a copy of index.html in all directories in current directory, pausing for confirmation before overwriting any existing files - names may not contain spaces - names may not contain spaces. | find . -mindepth 1 -maxdepth 1 -type d| xargs -n 1 cp -i index.html | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a copy of index.html in all directories in current directory, pausing for confirmation before overwriting any existing files - names may not contain spaces - names may not contain spaces. ### Response: find . -mindepth 1 -maxdepth 1 -type d| xargs -n 1 cp -i index.html |
Create a copy of the current working directory structure in the usr/project directory, | find . -type d -print|sed 's@^@/usr/project/@'|xargs mkdir | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a copy of the current working directory structure in the usr/project directory, ### Response: find . -type d -print|sed 's@^@/usr/project/@'|xargs mkdir |
Create a copy of the current working directory structure in the usr/project directory, | find . -type d -print|sed 's@^@/usr/project/@'|xargs mkdir -p | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a copy of the current working directory structure in the usr/project directory, ### Response: find . -type d -print|sed 's@^@/usr/project/@'|xargs mkdir -p |
Create a directory named 'alpha_real' in the current directory | mkdir alpha_real | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a directory named 'alpha_real' in the current directory ### Response: mkdir alpha_real |
Create a full path symbolic link "$newlink" from a relative path symbolic link "$origlink" | ln -s $(readlink -f $origlink) $newlink | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a full path symbolic link "$newlink" from a relative path symbolic link "$origlink" ### Response: ln -s $(readlink -f $origlink) $newlink |
Create a gzip archive file ($tarFile) of all *.log files under $sourcePath | find $sourcePath -type f -name "*.log" -exec tar -uvf $tarFile {} \; | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a gzip archive file ($tarFile) of all *.log files under $sourcePath ### Response: find $sourcePath -type f -name "*.log" -exec tar -uvf $tarFile {} \; |
Create a hard link named "my-hard-link" to "myfile.txt" | ln myfile.txt my-hard-link | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a hard link named "my-hard-link" to "myfile.txt" ### Response: ln myfile.txt my-hard-link |
Create a local SSH tunnel from "localhost" port 16379 to "localhost" port 6379 using key "keyfile.rsa" and disables the interactive shell | ssh -i keyfile.rsa -T -N -L 16379:localhost:6379 someuser@somehost | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a local SSH tunnel from "localhost" port 16379 to "localhost" port 6379 using key "keyfile.rsa" and disables the interactive shell ### Response: ssh -i keyfile.rsa -T -N -L 16379:localhost:6379 someuser@somehost |
Create a new RSA key for ssh with no passphrase, store it in ~/.ssh/id_rsa without prompting to overwrite if this file exists, and minimize output from ssh-keygen. | echo -e 'y\n'|ssh-keygen -q -t rsa -N "" -f ~/.ssh/id_rsa | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a new RSA key for ssh with no passphrase, store it in ~/.ssh/id_rsa without prompting to overwrite if this file exists, and minimize output from ssh-keygen. ### Response: echo -e 'y\n'|ssh-keygen -q -t rsa -N "" -f ~/.ssh/id_rsa |
Create a new directory "existing-dir/new-dir/" on host "node" | rsync /dev/null node:existing-dir/new-dir/ | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a new directory "existing-dir/new-dir/" on host "node" ### Response: rsync /dev/null node:existing-dir/new-dir/ |
Create a report of the contents of a USB drive mounted at find /path/to/drive | find /path/to/drive -type f -exec file -b '{}' \; -printf '%s\n' | awk -F , 'NR%2 {i=$1} NR%2==0 {a[i]+=$1} END {for (i in a) printf("%12u %s\n",a[i],i)}' | sort -nr | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a report of the contents of a USB drive mounted at find /path/to/drive ### Response: find /path/to/drive -type f -exec file -b '{}' \; -printf '%s\n' | awk -F , 'NR%2 {i=$1} NR%2==0 {a[i]+=$1} END {for (i in a) printf("%12u %s\n",a[i],i)}' | sort -nr |
Create a rsa key of 2048 bits with comment "michael" and store it in file "key". | ssh-keygen -b 2048 -t rsa -f key -C michael | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a rsa key of 2048 bits with comment "michael" and store it in file "key". ### Response: ssh-keygen -b 2048 -t rsa -f key -C michael |
Create a rsa key with comment specified by variable APP and passphrase specified y SSHKEYPASS. | ssh-keygen -t rsa -C "$APP" -N "$SSHKEYPASS" -f ~/.ssh/id_rsa | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a rsa key with comment specified by variable APP and passphrase specified y SSHKEYPASS. ### Response: ssh-keygen -t rsa -C "$APP" -N "$SSHKEYPASS" -f ~/.ssh/id_rsa |
Create a ssh key and store it in the file ~/.ssh/apache-rsync | ssh-keygen -f ~/.ssh/apache-rsync | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a ssh key and store it in the file ~/.ssh/apache-rsync ### Response: ssh-keygen -f ~/.ssh/apache-rsync |
Create a ssh key of RSA type, and prompt for a filename to store it, presenting the default for this type of key as $HOME/.ssh/id_rsa | ssh-keygen -t rsa | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a ssh key of RSA type, and prompt for a filename to store it, presenting the default for this type of key as $HOME/.ssh/id_rsa ### Response: ssh-keygen -t rsa |
Create a ssh key with no passphrase and store it in "outfile". | ssh-keygen -f outfile -N '' | Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Create a ssh key with no passphrase and store it in "outfile". ### Response: ssh-keygen -f outfile -N '' |