I need help with 2 scripts i'm doing
1) Write a script that will list the files you have in the current
directory, followed by the directories. The output should have the
form:
Files:
------
filenames
Directories:
------------
directories
2) Write a script that will take two command line arguments (not inputs).
These two arguments specify an old file extension and a new
file extension. The script should rename all the files in the current
working directory to ones with the new extension.
e.g. script3 doc tex
should change all files with having the extension .doc to have the
.tex extension.
I'm clueless on doing this since i'm a n00b on Shell scripts, help!!
1) Write a script that will list the files you have in the current
directory, followed by the directories. The output should have the
form:
Files:
------
filenames
Directories:
------------
directories
2) Write a script that will take two command line arguments (not inputs).
These two arguments specify an old file extension and a new
file extension. The script should rename all the files in the current
working directory to ones with the new extension.
e.g. script3 doc tex
should change all files with having the extension .doc to have the
.tex extension.
I'm clueless on doing this since i'm a n00b on Shell scripts, help!!