8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi guys, I need your help to use advance grep command, In my example below, I have 5 container which has some information on it, and I need to grep specific word "PLMNCode=454F00" which will not only grep the line contains that word, but I need to print the output for the whole container.
Input... (6 Replies)
Discussion started by: hapalon
6 Replies
2. Debian
Hi There
I have a network where im running squid proxy in transparent mode. All sites are blocked by default and the users can only browse sites listed in a file called allowed-sites. I have to block a group of users in department A from accessing 5 sites that the rest of the company can access.... (0 Replies)
Discussion started by: linuxjunkie
0 Replies
3. Shell Programming and Scripting
hi all
i have a file of the format
Time(starting from 0 in asc order) bytes service flags protocols
e.g.
0, 0, 0, 56, 56
1, 524, 3, 6, 75
1, 624, 0, 43, 53
2, 72, 0, 43, 80
3, ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
4. Programming
Hi,
I have to find jar file name and its path by passing it containing class file name, jar is a kind of zip.
by using following command I am able to get jar file name by passing class file name.
find -name "*.jar" -exec grep "CLASSNAME" {} \;
find -name "*.jar" -exec grep... (3 Replies)
Discussion started by: niceboykunal123
3 Replies
5. Solaris
Hi,
Anyone can help me, how to used the advance 2 days?
today is : 20090915
i need to get the date : 20090917 in the OS level
Thanks,
DBM (4 Replies)
Discussion started by: dba_macau
4 Replies
6. UNIX for Advanced & Expert Users
You have a file called /opt/test/input.txt with the following information:
man_aa_bld_100.410.040_CMD 08/14/2008 23:29:21 08/14/2008 23:31:10 SU 5339491/1
man_aa_bld_100.410.050_CMD 08/14/2008 23:29:21 08/14/2008 23:31:11 SU 5339491/1
man_aa_bld_100.410.060_CMD 08/14/2008 ... (3 Replies)
Discussion started by: jkumsi
3 Replies
7. Shell Programming and Scripting
x="PermitRootLogin no"
cd /etc/ssh
y=`cat sshd_config |grep "PermitRootLogin"`
if ]
then print "Sorry, Remote Root SSH login already disabled."
exit
else print "Welcome to Remote SSH Login disable script."
fi
output:
+ x=PermitRootLogin no
+ cd /etc/ssh
+ + cat sshd_config... (2 Replies)
Discussion started by: solaix14
2 Replies
8. Shell Programming and Scripting
Hey all,
I want to go ahead and create a alias for the command /bin/passwd.
But I want to do this so that it will/can detect if the -r option is added to the command as well...Can this be done...
For example if the user enters:
# passwd
--> Alias will issue /bin/passwd -r
# passwd -r... (0 Replies)
Discussion started by: msbutton27
0 Replies