---
title: "shell 大小写转换"
author: "wangjin161"
date: "2015-10-28T20:52:56Z"
tags: []
categories: ["编程语言"]
slug: "shell"
draft: false
lastmod: "2015-10-28T20:52:56Z"
id: 2252822
url: "https://wangjin161.iteye.com/blog/2252822"
---

### 1.小写转大写

   echo "test"|tr \[:lower:] \[:upper:]  

 

### 2.大写转小写

   echo "test"|tr  \[:upper:]  \[:lower:]