Search Results

Search: Posts Made By: pharos467
6,617
Posted By pharos467
copy files from one location to similar location
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,

say location 1,
...
9,695
Posted By pharos467
change passwd remotely in solaris 10
i'm trying to change passwd remotely in unix (solaris) and tried using "expect" but it is not working.

Any ideas to change the passwd remotely using a shell script?
306,827
Posted By pharos467
i'm working on a korn shell, but my script is...
i'm working on a korn shell, but my script is running on bash mode, will it affect ?
306,827
Posted By pharos467
make a foreground running process to run background without hang up
I've tried this a long time ago and was successful but could not remember how i did it. Tried ctrl+Z and then used bg %

could not figure what i did after to keep it no hangup -

not sure if...
40,110
Posted By pharos467
Sorry forgot to mention, i need command for...
Sorry forgot to mention, i need command for solaris.

tried df -t and df -i but did not work.
40,110
Posted By pharos467
total count of inodes in a mount
is there Any command to get total count and number of free inodes on a mount. please help
1
3,081
Posted By pharos467
alias
i used 'alias' command for a set of daily used long commands. But i noticed they are gone once i log out of the ssh session.

Can any one plz let me know if there is a way to set it permanently for...
5,938
Posted By pharos467
Ghostdog74 I'm new to unix scripting can you...
Ghostdog74 I'm new to unix scripting can you please explain what exactly this command does

awk 'NR>1 && !/^-/{ s+=$3 }END{print "Sum: " s}'
5,938
Posted By pharos467
i could extract the third column but i'm looking...
i could extract the third column but i'm looking for logic some thing like using conditions to check col1 and col2 and check value at col3 is greater than 0.
5,938
Posted By pharos467
need help in reading a output of a sql query in unix script
i'm used a sql query in a unix script to get the information from table. but unable to extract the output which i need. Any help with logic will be greatly appreciated.

my sql query provide output...
7,324
Posted By pharos467
manual
please check "man cmp". Provide manual for compare
5,835
Posted By pharos467
use '/' in find only if u want to search from Root dir
to find files in a particular dir. use this command -

find . -type f -mtime +5 -print
2,842
Posted By pharos467
check this
make sure that all the files which need to be edited are in current directory
for i in `ls`
do
sed -e 's@<?xml version="1.0" encoding="UTF-8"?>@@g' $i >temp; mv temp $i;
done
Good Luck !!!
Forum: Solaris 01-04-2008
9,449
Posted By pharos467
System Administration Certification
I'm planning to take System Administration certification in SUN Solaris. Can some one suggest me if there are any links are URLs to find sample question papers.

Pharos
2,216
Posted By pharos467
problem solved
Porter and Dragon, Thanks for your suggestions. I solved the problem now.

Due to confidential reasons i could not provide wht i exactly wanted, but here is an example which i did to solve my...
2,872
Posted By pharos467
try ssh user@host asks pswd ...provide...
try

ssh user@host

asks pswd ...provide it
2,216
Posted By pharos467
Access files from prev box after SSH to another box
i'm not much of an advanced unix programmer but I'm trying to write a script to access files on box1 after ssh from box 1 to box2. when ssh is invoked in the script i'm getting logged into box2 and...
4,890
Posted By pharos467
You can run this through command line cat...
You can run this through command line


cat file1 >> file2
108,000
Posted By pharos467
same script with different attempt
I tried the following script

cd pathname
for y in `ls *`;
do
sed 's_c:\mydocuments\pictures_d:/mypics/personal_' $y > temp; mv temp $y;
done

This script is working for all other paths...
108,000
Posted By pharos467
Now it works, one of the _ is missing in my sed...
Now it works, one of the _ is missing in my sed command .

Thanks 2 all who responded
108,000
Posted By pharos467
tired
below script sent the error

sed: command garbled:
108,000
Posted By pharos467
shell script to find and replace string in multiple files
I used the following script


cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done


and it worked fine for finding and replacing strings with names etc. in all...
59,243
Posted By pharos467
Find and replace a string in multiple files
I used the following script


cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done


and it worked fine for finding and replacing strings with names etc. in all...
77,373
Posted By pharos467
same job but differenet issue
I used the same script

for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done

and it worked fine for finding and replacing strings in all files of the given path.

I'm trying...
Showing results 1 to 24 of 24

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