---
title: "linux cmd sample"
author: "linvar"
date: "2011-07-08T13:03:36Z"
tags: []
categories: ["操作系统"]
slug: "linux-cmd-sample"
draft: false
lastmod: "2011-07-08T13:03:36Z"
id: 1119522
url: "https://linvar.iteye.com/blog/1119522"
---

1.find and sed and xargs
find . -type f -name '*.vcproj'          \
       | sed -e p -e 's/\.vcproj$/.vc9.vcproj/' \
       | xargs -n2 mv                           \
       ;

2.find ./ -exec grep "/adm/images/c.gif" '{}' \; -exec sed -i 's/\/adm\/images\/c.gif/\/Admin\/Images\/c.gif/g' {} \;

3.