Search Results

Search: Posts Made By: ananddr
4,381
Posted By ananddr
Matching a file with extension tmp
Hi all,

I am writing a shell script for processing files in a directory.

I need to read files in the directory and process them and write it to another file.

For example, if the directory...
8,540
Posted By ananddr
Accessing arrays in shell scripts
Hi All,

I have an array in my script.

For example,
array=(file1.xml,file1-summary.xml,file2.xml,file2-summary.xml,file3.xml,file3-summary.xml);


I am accessing the elements of the...
11,984
Posted By ananddr
Hi era , thanks for your help!!!! It...
Hi era ,

thanks for your help!!!!

It works fine after your suggestion....

Thanks a lot....

Anand.
11,984
Posted By ananddr
Displaying Array Elements in Shell Scripts
Hi All,

I am using the following piece of script to print all the array elements in a script by name compare.sh:

31 len=${#array
};
32 j=0;
33 #echo "The length of the array is : $len"...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy