I want to write a shell script in Linux, that will run the command wpaclean (usage: wpaclean <out.cap> <in.cap> ) and take every file in the current working directory as an argument.
For example, my shell script starts like this:
#! /bin/sh
cd /testfolder/
inside the folder there are numerous files: A.cap B.cap C.cap D.cap and so forth
Which commands do i need to put in the shell script, such that it automatically runs the command for every file in the directory and also automatically renames it?