Hello All,
ksh script.
Please consider the following case .
[/bz/arch]$ ls -l
-rw-r----- 1 100 400 405143552 Mar 21 2010 bz_1_0000063547_561428818.arc
-rw-r----- 1 100 400 404148224 Feb 19 09:55 bz_1_0000079359_561428818.arc
-rw-r----- 1 100 400 405625856 Feb 19 14:30 bz_1_0000079360_561428818.arc
-rw-r----- 1 100 400 404066304 Feb 19 18:11 bz_1_0000079361_561428818.arc
-rw-r----- 1 100 400 404066304 Feb 19 18:11 bz_1_0000079362_561428818.arc
-rw-r----- 1 100 400 404467712 Feb 19 18:42 bz_1_0000079363_561428818.arc
-rw-r----- 1 100 400 404066304 Feb 19 18:42 bz_1_0000079364_561428818.arc
-rw-r----- 1 100 400 404066304 Feb 19 18:52 bz_1_0000079365_561428818.arc
-rw-r----- 1 100 400 404467712 Feb 19 18:55 bz_1_0000079366_561428818.arc
I am getting as parameter a name of the of file with ".arc" extention.
I need to disply the list of the files (ls -l) from this file until the end of the list.
For example if i am getting as an input the file : bz_1_0000079362_561428818.arc ,
then i need to list the rest of the file list (including this file).
In this case the output should be :
-rw-r----- 1 100 400 404066304 Feb 19 18:11 bz_1_0000079362_561428818.arc
-rw-r----- 1 100 400 404467712 Feb 19 18:42 bz_1_0000079363_561428818.arc
-rw-r----- 1 100 400 404066304 Feb 19 18:42 bz_1_0000079364_561428818.arc
-rw-r----- 1 100 400 404066304 Feb 19 18:52 bz_1_0000079365_561428818.arc
-rw-r----- 1 100 400 404467712 Feb 19 18:55 bz_1_0000079366_561428818.arc
Thanks