https://github.com/ghazaleze/simple-script
search in a directory
https://github.com/ghazaleze/simple-script
linux script
Last synced: 4 months ago
JSON representation
search in a directory
- Host: GitHub
- URL: https://github.com/ghazaleze/simple-script
- Owner: GhazaleZe
- Created: 2020-01-30T16:56:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T09:42:54.000Z (over 5 years ago)
- Last Synced: 2025-01-05T04:17:38.768Z (6 months ago)
- Topics: linux, script
- Language: Shell
- Homepage:
- Size: 0 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple script (search in a directory)
This is a simple script that has 3 entry parameters. They are :
1.file format
2.directory name
3.text to search
The script finds all text-to-search(third parameter) that is in a directory name(second parameter) and has a file format (first parameter).
## example:
```sh
$ script.sh *.c /home printf
```
Find all .c file in /home directory that contains printf and prints them.