The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 03-31-2008
dd_sh dd_sh is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 2
Hi
Thanks for the reply.
Yeah I have worked on C and VB but not in these shell level programming. And main problem for me on these programing is they hardly give me error message and I can't check the condition on debug mode.

For OR logic I tried
Code:
if (letter = " " -o letter = ",")
as I found on some tutorials.
And I also read that for equals to we have to use single '=' not as '=='' like C++

Is this line do the same operation as mine???
Code:
perl -pe 's/(.{1,119}[ ,])/\1\\\n/g'
It is really difficult to find out what is happening with these code. I know few things
a) to handle the strings, we have to give ' at the start and end of the command
b) all arguments are should be separated by /
I really don't know any thing besides those from this code