10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am setting the variables like this :
setenv MODULE1 modem5__3
setenv MODULE2 modem5__2
setenv MODULE3 modem_ctrl_1_1
setenv MODULE4 modem_1_0
setenv COUNT 10
I am having a bash script as shown below
################################################
#!/bin/bash
for ((... (5 Replies)
Discussion started by: kshitij
5 Replies
2. Shell Programming and Scripting
Hallo Team,
I would like to edit my output(files) after using grep manipulation. this is how my code looks like:
grep Originating *2013*|grep -v "ACCOUNT IN RECALC"|grep -v MOBIFIN-TRANSIT|grep -v ",Call Forward Not Reachable"|grep "Unclear scenario:On-net to Off-net PGW, On-net to Off-net... (8 Replies)
Discussion started by: kekanap
8 Replies
3. Shell Programming and Scripting
Hi everyone, I'm trying to make a csh script analog for grep.
I need to run through the directory which is arg, find a word (arg) in the files, and echo their names.
Here's what I got
if ($#argv != 2) then
echo "Usage: $0 directory word"
echo "Shows files which contains words"
exit... (3 Replies)
Discussion started by: vanguardua
3 Replies
4. Shell Programming and Scripting
To all geeks,
What I want to achieve:
1. Accept two filenames from user and store the filenames in two variables (FILE1 and FILE2)
2. Check if files exisits. If doesn't, then exit
3. If files exist, look for a particular string in both files
4. If the string exists, then change the... (8 Replies)
Discussion started by: Deepak Tulsani
8 Replies
5. Shell Programming and Scripting
Hi All,
I was looking for grep command option which can exactly matches the word in a file, for examples you may be seeing one word that is also in another word, there might be lkk0lv23 and a lkk0lv234 in which case lkk0lv23 will put BOTH hosts from the grep in.
I was using this in a bash... (2 Replies)
Discussion started by: bobby320
2 Replies
6. Shell Programming and Scripting
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
Discussion started by: sarbjit
1 Replies
7. Shell Programming and Scripting
Hi all,
I want to use some commands and I wrap them into an array, like follows:
set ALIAS_AR = ( "ls -ltr|wc -l" \
"ps -ef|grep -v grep |grep tty|wc -l" \
"who|wc -l" )
Then I use a while loop to call every step:
set no = 1... (3 Replies)
Discussion started by: tpltp
3 Replies
8. Shell Programming and Scripting
Hello Guys,
I was trying to obtain the information from the /etc/passwd file, here was my script:
38 echo -n "What's your login name? "
39 set logname=$<
40 echo "Your login name is $logname, your user's ID is `grep $logname /etc/passwd|awk -F: '{print $3}'`"
41 echo " Your home dir is... (1 Reply)
Discussion started by: tpltp
1 Replies
9. Shell Programming and Scripting
I have data that looks something like this:
term1/term2/2005-12-01 13:20:30/term4
I need to make it look like this:
term1/term2/20051201132030/term4
I am using a csh script. I have tried to do it by first converting the date/time to the format in which I want it, and then replacing it... (1 Reply)
Discussion started by: oprestol
1 Replies
10. Shell Programming and Scripting
Hi falks,
I need to substitute in my ksh program, parameter (full path of directory) ,which is sent from outside program, with another parameter (another full path of directory) ,which is known and validated inside my program.
I tried to use "sed" ,but i failed.
For example:
... (2 Replies)
Discussion started by: nir_s
2 Replies