1

Bash script to sort files

view story
linux-howto

http://www.unix.com – I've got a disorganized list of items and quantities for each. I've been using a combination of grep and sort to find out how much to buy of each item. I'm tired of having to constantly using these commands so I've been trying to write a shell script to make it easier, but I can't figure out how to start. For example, if my list is like this: Code: 1. Cups 50 2. Forks 25 3. Spoons 25 . . . 15. Plates 50 I want to be able to make some command like "find_item 50" so I know which items require at least 50. I've been trying to learn UNIX on my own, but this scripting stuff is (HowTos)