source: BOOK/editor-tools/Find-files.sh@ 83152bf

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 83152bf was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 386 bytes
RevLine 
[3f8be484]1#!/bin/bash
2
3# This script will find all XML files in the working repository copy
4# that contains the same string in their name.
5
6# To be executed from the top-level directory.
7
8# Useful to find the files related with a same package in all
9# directories and architectures.
10
11NAME=`basename $0`
12
13if [ -z "$1" ]; then
14 echo "USAGE: $NAME string"
15 exit
16fi
17
18find . -name "*$1*.xml" | sort
Note: See TracBrowser for help on using the repository browser.