mirror of
				https://github.com/onceupon/Bash-Oneliner.git
				synced 2025-11-03 22:51:07 +01:00 
			
		
		
		
	Data wrangling
- Delete all non-printing characters
This commit is contained in:
		@@ -2417,6 +2417,11 @@ username=`echo -n "bashoneliner"`
 | 
			
		||||
tee <fileA fileB fileC fileD >/dev/null
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
##### Delete all non-printing characters
 | 
			
		||||
```bash
 | 
			
		||||
tr -dc '[:print:]' < filename
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
##### Remove newline / nextline
 | 
			
		||||
```bash
 | 
			
		||||
tr --delete '\n' <input.txt >output.txt
 | 
			
		||||
@@ -2429,6 +2434,7 @@ tr '\n' ' ' <filename
 | 
			
		||||
##### To uppercase/lowercase
 | 
			
		||||
```bash
 | 
			
		||||
tr /a-z/ /A-Z/
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
##### Translate a range of characters (e.g. substitute a-z into a)
 | 
			
		||||
```bash
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user