10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
i have a variable var=a_b_c
i want command to find no. of underscores in a variable
Thank you (7 Replies)
Discussion started by: pracheth
7 Replies
2. Shell Programming and Scripting
korn shell,
testing if a pattern exist in a string,
x is constant, y could be none,all or any combination of the elements of x,
x="aa bb cc dd ee ff gg hh ii jj kk ll"
y="ff kk"
for z in `echo ${x}`
do
if <any pattern in $y matches any pattern in $x> ]
then
do something
fi... (3 Replies)
Discussion started by: squrcles
3 Replies
3. Solaris
I just setup a new jumpstart server, and I'm having problems with rules.ok errors.
I'm coming up blank after many Google searches, forum searches, etc.....
This is the error I receive:
Skipped interface e1000g1
Attempting to configure interface e1000g0...
Configured interface e1000g0... (0 Replies)
Discussion started by: christr
0 Replies
4. IP Networking
I have situation where I have rules in iptables with comments. Now... I can for example enter rule like "iptables -A FORWARD -s xxx -j ACCEPT" and delete it with "iptables -D FORWARD -s xxx -j ACCEPT".. but if that rule contain some random comment (-m comment) then ... ? I can find with scripting... (2 Replies)
Discussion started by: darkman_hr
2 Replies
5. Shell Programming and Scripting
I have a zsh script written by someone else, I am trying to modify it to work on slightly different data -problem is I know nothing about shell scripting.
I am trying to muddle through this myself since I need to learn but can someone tell me how to debug a script? ie. I want to display the value... (6 Replies)
Discussion started by: cmp260
6 Replies
6. Shell Programming and Scripting
Hi All:
I want to write a shell script to store OS current date - 1 day value in a variable.
Current Date is: 22042010 and new value is 21042010
I have multiple files having date value in name in ddmmyyyy format for multiple day, so I want to find all the files based on the date... (3 Replies)
Discussion started by: lodhi1978
3 Replies
7. Shell Programming and Scripting
when i run a select query in database, it will return the objid based on the condtion. If there is no objid tht meets the condition, I will not get any value returned and the variable will hold nothing... so now how to chk tht the variable is blank or not. I tried the below piece of code:
if ;... (6 Replies)
Discussion started by: harish409
6 Replies
8. UNIX for Advanced & Expert Users
There is shell script which contains some variables .
These variables are used , but they have declared in the script.
I think its a environment variable, so I want to know where these variables are set and given values
In .profile or .login..or where to c
Please give the full path and file... (3 Replies)
Discussion started by: tkbharani
3 Replies
9. UNIX for Advanced & Expert Users
There is shell script which contains some variables .
These variables are used , but they have not declared in the script.
I think its a environment variable, so I want to know where these variables are set and given values
In .profile or .login..or where to c
Please give the full path and... (1 Reply)
Discussion started by: tkbharani
1 Replies
10. Shell Programming and Scripting
I have a variable whose value is
I="user1:x:1100:1200:ID for user1:/home/user1:/bin/ssh-dummy-shell"
I want to replace the last part '/bin/ssh-dummy-shell' with '/bin/true'
I tried using sed but it garbled
sed 's/\/bin\/ssh-dummy-shell/\/bin\/true' $I
Thanks for the help (5 Replies)
Discussion started by: aajmani
5 Replies