What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-26 01:50:17
proxmox pass raw disk
# get the disk id because letter names (/dev/sda etc) are volatile # hint: use lsblk to find the drive you are trying to add find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12 qm set <vmid> -scsi&... Add solution -
TypeScript 2022-03-17 17:45:05
write a bash script that accepts a text file as argument and calculates number of occurrences of each words in it and return them as key value pairs
file=/home/stefan/ooxml1.txt for word in $(sed 's/[^A-Za-z]/ /g' $file | tr " " "\n" | sort -u) do echo -n "$word " grep -c $word $file done | sort -k2 -n Add solution -
Shell/Bash 2022-03-06 06:20:01
how to print output of a command to a file in linux
# To Save output of a command to a file in linux you need to # add '> filename' to the end of the command like below # Examples : $ ls > output.txt $ grep -inR "something" . > output.txt Add solution
Best helpers
Ranking is empty