Search Results

Search: Posts Made By: sayonm
2,727
Posted By sayonm
The Unix Programming Environment by Kernighan and...
The Unix Programming Environment by Kernighan and Pike

good book ....but not sure it covers networking
1,599
Posted By sayonm
free -m -> RAM SIZE df -h -> Size of every...
free -m -> RAM SIZE
df -h -> Size of every partition and free space can also be seen...just add the total size of all partitions
16,384
Posted By sayonm
i think ask.jackal was right...but the exact...
i think ask.jackal was right...but the exact output that sureshg_sampat wanted was

awk -F'|' '{ if ($4 ~ /NULL/ || length($4)==0 ) print $0} filename'


just a small change... :)
1,991
Posted By sayonm
can you please post the segment of the code so...
can you please post the segment of the code so that everyone can have a look at it..
23,486
Posted By sayonm
it can be that the crontab setup is not enables...
it can be that the crontab setup is not enables for ur username. tell the root to make a cron for you. and then u can easily make crons.
2,783
Posted By sayonm
but wht if the file that is getting created is a...
but wht if the file that is getting created is a big file and it takes some time for that file to get created, then the above codes wont help....i am teling this from my experience

but i dont...
6,239
Posted By sayonm
error given:- $ sed -e...
error given:-


$ sed -e 's/'${line1}'/'${line1_m}'/g' prod_hier_1234.txt > test.txt
sed: -e expression #1, char 0: no previous regular expression
6,239
Posted By sayonm
weird solution
try the follwing

line1="abc"
line2="efg"
echo "sed -e 's/$line1/$line2/g' prod_hier_1234.txt > test.txt" > temp.sh
sh temp.sh
rm temp.sh


hope this works :p
57,489
Posted By sayonm
perfect soln..
@ragha: try this..


if [[ $name -eq "Ragha" && $status -eq "Active" ]]
then
echo success
fi


this working fine..... :)
24,815
Posted By sayonm
weird solution
You can rename the log file with .c extension and then whleprinting the error messages print them within " " or within /* */
[code]
echo "\"ERROR MESSG\"" > log.c
echo "/*ANOTHER ERROR*/" >> log.c...
4,893
Posted By sayonm
i hope this helps...
There is a file called
/home/user/.bash_history

That contains last 1000 commands executed in a shell. So you can run a script after every 1 hr(or maybe 10mins) to get all the new updates of the...
4,424
Posted By sayonm
ya right.....just my style :cool: anyways i...
ya right.....just my style :cool:

anyways i just wrongly named my previous post as "just another simple soln"....it should have been "just another soln"..... :D
4,082
Posted By sayonm
some modification in the previous code:- ...
some modification in the previous code:-

for i in `awk '{print $1}' file | uniq`
do
echo $i `grep "^$i " file | awk '{print $2}'`
done

the output is:-

[sayonm@zion ~]$ sh...
4,424
Posted By sayonm
another simple soln
for ((i=1;i<=`awk -F'|' '{print $2}' file | uniq | wc -l`;i++))
do
word=`awk -F'|' '{print $2}' file | uniq |head -$i | tail -1`
echo $word
grep "$word" file | awk -F'|'...
4,082
Posted By sayonm
just another simple soln
for i in `awk '{print $1}' file | uniq`
do
echo $i `grep $i file | awk '{print $2}'`
done


hope this helps......... :cool:

cheers,
sayon
19,966
Posted By sayonm
he doesnt want to search for securitySettings....
he doesnt want to search for securitySettings. Instead he wants to search the word "localhost" and find the last part of that link(href as in a html tag)...
1,634
Posted By sayonm
simple soln
just add one more line at the beginning of ur script


touch clean_input_backup.ksh


this will change the "last modified" information and change it to today's date...tada...job done

hope...
44,798
Posted By sayonm
use the following :colorscheme [color] ...
use the following

:colorscheme [color]

color=blue, torte, default, delek, desert, elflord...etc etc....choose the best settings
3,541
Posted By sayonm
@jambesh what i meant was , everytime to...
@jambesh

what i meant was , everytime to check a particular co, u have to change the col name....so i said that to save that labour, a basic script can be written that will do that by its...
19,966
Posted By sayonm
way simpler
can be don in a much more simpler way as follows(i mean there is lesser chance of getting lost in sed :) )

grep "loaclhost" file.html | awk -F'/' '{print $NF }' | sed -e 's/>//g'


hope his...
26,376
Posted By sayonm
a dirt code written by me once upone a time........
n=`wc -l $1 | awk '{print $1}'`
for ((i=1;i<=$n;i++))
do
echo `head -$i $1 | tail -1`
done



this will also work....preferably, dont use the above code for very huge files(>10mb) :p ...
6,009
Posted By sayonm
@praveen : i think u got it a bit wrong.he said...
@praveen : i think u got it a bit wrong.he said he wanted to be informed by an email...

the following code will work(hoping u have a mailing client installed in ur OS)

#!/bin/sh
SIZE=`du -s...
Forum: Ubuntu 09-14-2006
3,812
Posted By sayonm
u can go to ubuntu.com and order for ubuntu...
u can go to ubuntu.com and order for ubuntu linux(not unix!!!) and it will be shipped to you free of cost. you can also download it from that site. you can also download many otehr .iso files for...
Forum: SuSE 09-14-2006
155,754
Posted By sayonm
linux fc4 server processor : 0 ...
linux fc4 server


processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 10
cpu MHz ...
3,541
Posted By sayonm
very simple soln
i think i have a very simple soution....


$ cat file | cut -f 25 -d',' | grep -v '^.' | wc -l

for checking every field just change the no. "25" to whatever col. no. u want to check...
Showing results 1 to 25 of 30

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