Search Results

Search: Posts Made By: Sarala Anugu
44,742
Posted By Sarala Anugu
Grep group by and count
for i in `ls -1 | grep "20091201" | nawk -F"_" '{print $1}'| sort -u`; do
print $i=`ls -lrt|grep $i"_20091201"|wc -l` ; done
2,227
Posted By Sarala Anugu
Re : Transport to another server within a script.
According your description given below
you have this
server1 - which has the script 'emm' and filename 'file'
server2 - which has the script 'emm'
and you want to do this
1) scp the 'file'...
19,281
Posted By Sarala Anugu
how to get the first ocurrence of Started and Finished
sed -n '/^Finished/ {
H
}
$ {
x
p
}
/^Started/,/^Finished/ {
/^Started/ {
h
...
9,804
Posted By Sarala Anugu
nawk -F">" '{print $2}' file | nawk -F"<" '{print...
nawk -F">" '{print $2}' file | nawk -F"<" '{print $1}' | grep . | grep your-pattern

with this method you are not hardcoding the tagnames, instead we are getting the string between > and the...
4,669
Posted By Sarala Anugu
whats the use of exit 0
I have seen many scripts where exit status is set to '0' at the last line of the program. Is there any significance to it
Say this program
echo "Hello $USER"
echo "Today is \c ";date
echo "Number...
5,519
Posted By Sarala Anugu
what if i am using csh, and I don't want to get...
what if i am using csh, and I don't want to get into ksh

i usually do this way
ksh -o vi

Is there any other way? i hv already set the env variable EDITOR to vi, but now use :(
Showing results 1 to 6 of 6

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