Search Results

Search: Posts Made By: aliahsan81
3,407
Posted By aliahsan81
Hi I like sed command its not working and...
Hi

I like sed command its not working and what the logic behind it
3,407
Posted By aliahsan81
writing string to specific line
I want to put a text string in file using any method on specific line


line number 30

text to be put %this is location /var/www/filename
1,935
Posted By aliahsan81
adding text to a file
Hi All

I am making a script in which.I have a problem i try to discribe.


File1 content need to be append in file 2 but such as if content already exist then dont add.

File1 IS Like this
...
10,932
Posted By aliahsan81
Its not working see. curl -i -L...
Its not working see.

curl -i -L www.google.com
Content-Type: text/html; charset=UTF-8
Set-Cookie: PREF=ID=74fd4a23865c9ff4:TM=1248948511:LM=1248948511:S=bEeUX29ZRqM_haw6; expires=Sat,...
10,932
Posted By aliahsan81
Curl getting html tags
I am making a script in which i wana use curl to download a web page and check status.But problem is when i use curl in linux command line it downlaod htlm tags.How can we ignore these tage any idea.
Forum: UNIX and Linux Applications 05-05-2009
2,676
Posted By aliahsan81
Take all db dump with username and passowrd
Hi All
I have mysql server,That have many Database with different username and password for each,How can i dump all database collectively,And then restore to an other mysql db sever .
3,685
Posted By aliahsan81
Find exit status problem
Hi All

Its strange or i am doing it wrong.When find run successful it return exit status 0.And same if it didn't run successfully it return zero.



find /var/www/html -maxdepth 1 -type f...
12,554
Posted By aliahsan81
Try join or paste command
Try join or paste command
1,557
Posted By aliahsan81
i have fixed it Before it was if [ ...
i have fixed it


Before it was

if [ $a > $n ]


I have fixed like this


if [ $a -gt $n ]
1,557
Posted By aliahsan81
while loop problem
I have following code that is not working that how it should work



paste $newlogsize $apachelogsize | while read n a

do

if [ $a > $n ]

then
sudo rm -rf $apachelogsize
sudo touch...
1,875
Posted By aliahsan81
Actually i mean that paste file1 file2 |...
Actually i mean that

paste file1 file2 | while read a b
do
echo $a $b
done
1,875
Posted By aliahsan81
Get data from two text file in one loop
Hi all

I have two file that contain different data.I want to get each file data line by line in one loop.i try with cat but cat works ok against one file

File a

23
34
45

File b
abc...
2,518
Posted By aliahsan81
Thanks for ur reply but i made a awk good take a...
Thanks for ur reply but i made a awk good take a look at it

awk 'FNR==NR{_[++d]=$1;next}{_[FNR]+=$1}END{for(i in _) print _[i]}' file1 file2
2,518
Posted By aliahsan81
Like i have file A and B Both contain...
Like i have file A and B

Both contain Numaric like

File A

34
45
56


File B

34
67
89

I want to add first number number from both file
34+45=Result in some other file...
2,518
Posted By aliahsan81
using expr command to add value from two file
How to add two number from two different file using expr command ??
2,185
Posted By aliahsan81
Howto process log file from where it left
Hi all

I am doing some matching apache access log processing.Now i want a some way that i can start log search/process from where it left.Can any one give me ideads.
8,251
Posted By aliahsan81
I guess then its not possible.I want all file...
I guess then its not possible.I want all file which is less the 644.less then 664 can be any file permission.i dont want any specific
8,251
Posted By aliahsan81
I am making a script.I have read man and test it...
I am making a script.I have read man and test it out.I know we can use some thing like this

find /abc -type f \! -perm 664


But this gave me files which are not 664.I want to find files in a...
8,251
Posted By aliahsan81
Find File with permission below 664
Hi
Using find i want to find files with permission below 664.
1,769
Posted By aliahsan81
thx It worked
thx It worked
1,769
Posted By aliahsan81
thx I have one question more ...
thx
I have one question more

cp="/tmp/log.222.$$"

what does this means

and i am doing this and giving me error


path=$(mktemp /tmp/path.XXXXXX) || exit1
dt=`date +%Y%M%D`
...
1,769
Posted By aliahsan81
loop question
HI ALL

How to read first 10 line from a file using any method
1,381
Posted By aliahsan81
HI This is not working Dear,Can anyone post...
HI

This is not working Dear,Can anyone post simpler and nicer solution.
1,381
Posted By aliahsan81
HI I think this will work,Its good if you...
HI

I think this will work,Its good if you explain how and what is going on
1,381
Posted By aliahsan81
Need good solution
Hi all

I have a script that run fine ,Actually if find 777 directory and take its count and report,There is no problem with the script.But our reporting system have some limitation that dont allow...
Showing results 1 to 25 of 62

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