Search Results

Search: Posts Made By: janardhanamk
2,532
Posted By janardhanamk
Unable to write to a file within a loop
Hi All,

Following is the program that i have written in cygwin. The redirection of the unfound $param1 to error.txt file doesnt work.Can any one help?


#!/usr/bin/sh
fname=$1
sed 's/ //g'...
1,378
Posted By janardhanamk
Problems with IF Else ??!!
I have written the following code in cygwin to create directories in windows based on the parameter passed.


echo $1 > fullpath
path1=`awk -F / '{print $1}' $fullpath
path2=`awk -F / '{print...
2,295
Posted By janardhanamk
Yes, it works if i change "for" loop to "while"...
Yes, it works if i change "for" loop to "while" loop..
2,295
Posted By janardhanamk
Thanks a lot scott. It hangs even if i pass...
Thanks a lot scott. It hangs even if i pass parameter...
I will try with the sed example that u have given...
2,295
Posted By janardhanamk
Problems in shell script if sed is used
Hi All,

Below is the script which i have written in cygwin:

#!/usr/bin/sh
fname=$1
cat $fname | sed 's/ //g' > fname1
for i in `cat $fname1`
do
echo $i > file1
#param1 is script name...
Showing results 1 to 5 of 5

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