Pario TechnoBlob
About
Posts
Tag: tr
Create random filenames with random content
I wanted to test filesystem checking on a large XFS filesystem and needed to fill the filesystem. The task was to create files on random with different file size and names...
Delete all newlines from a file
tr -d '\n' < file
Translate uppercase characters to their corresponding lowercases
cat file| tr 'A-Z' 'a-z'
Convert everything in the current directory from upper- to lowercase.
A bash script to convert everything from upper- to lowercase. "!/bin/bash<br /> for n in *; do mv $n
echo $n | tr '[:upper:]' '[:lower:]'
; done
««
«
1
2
»
»»