Search Results

Search: Posts Made By: posix
647
Posted By posix
Script is fine you need to call the script with...
Script is fine you need to call the script with file as argument .
sh shell_script.sh input_file
if you wish to get the input conversion, rather using $INPUT at end of sed use echo statement will...
7,453
Posted By posix
try with script.ksh -mMessage\ from\ xyz...
try with

script.ksh -mMessage\ from\ xyz -e'email@xyz.com'
830
Posted By posix
Both should be individual process ID , please do...
Both should be individual process ID , please do a test using sleep command inside the script for 30sec, so that you can be get noticed in ps .
Try something
sleep 30
echo $$
1,602
Posted By posix
I believe you need to check the .so file , which...
I believe you need to check the .so file , which one is existing or not .

libselinux.so.1
libcrypto.so.6

use locate command
2,961
Posted By posix
Unlink multiple files
I wish to unlink multiple links, but man pages shows
unlink - call the unlink function to remove the specified file
let's linked are in number sequence and I'm doing
unlink `echo {1..500}`
This...
1,350
Posted By posix
@skrynesaver thanks for the useful links and...
@skrynesaver thanks for the useful links and information
1,350
Posted By posix
Still looking for a better portal
Still looking for a better portal
1,350
Posted By posix
PERL-CGI learning
Hello All,

I am actually learning PERL and more interested to learn CGI script too. Can any suggest a forum or weblink which is more helpful for a dummy CGI developer.

Thanks
1,534
Posted By posix
check this one sed 's/-->/\n/g'...
check this one

sed 's/-->/\n/g' input_file.txt
760
Posted By posix
Could explain how the dynamic variable are...
Could explain how the dynamic variable are generated ? so that we do the test againt it.
Do you look for getopt , check man getopt for more details .
760
Posted By posix
check this one #!/bin/sh for var in...
check this one


#!/bin/sh
for var in ` cat input_file.txt | sed 's/./&\n/g'`
do
if [ $var == "a" -o $var == "b" ] ; then
echo " do something "
else
echo $var ...
2,189
Posted By posix
Try in Awk awk...
Try in Awk

awk 'BEGIN{ORS="|"}/TABLEATTRIBUTE NAME ="Lookup cache directory name"/' input_file

You can make use grep -i '<TABLEATTRIBUTE NAME ="Lookup cache directory name"' input_file | tr...
Forum: Red Hat 05-01-2013
2,526
Posted By posix
@hanson44 I have not much idea about the...
@hanson44
I have not much idea about the package manager, after few try got to know something on this. But still confuse about this.

Here i am trying to install the Mplayer, i got the respective...
Forum: Red Hat 05-01-2013
2,526
Posted By posix
How to get all the .so files?
Dear all,

I have succesfully installed the redhat-6, But while installing a .rpm package i got to know it has missing a lot of .so (libraries) in it. Can you suggest how to get all the libraries ....
17,132
Posted By posix
Check with this command awk '{printf...
Check with this command
awk '{printf "%s"",",$0}' input_file
15,391
Posted By posix
The avobe explanation is correct, for delimeter...
The avobe explanation is correct, for delimeter in awk use -F and use the value of "nth" filed. For runtime variable assing that variable also. using -v option.
awk -vvar=5 -F" " 'NR==10 {print...
1,953
Posted By posix
How to initiate the function :confused:, check...
How to initiate the function :confused:, check how simple functions should work for your choosen inputs
#!/bin/sh
fun1(){
echo " i am in fun-1"
}
fun2(){
echo " i am in fun-2"
}
fun3(){
echo...
715
Posted By posix
Please elucidate your data, for concatenate you...
Please elucidate your data, for concatenate you can try paste command. Please use your delimeter as per your wish with -d option
paste temp1.txt temp2.txt temp3.txt > temp4.txt
2,691
Posted By posix
Are you looking for chroot jail for ssh / scp /...
Are you looking for chroot jail for ssh / scp / sftp ? Please do a seearch on google about this concept.
1,029
Posted By posix
Preview of execution can be done using "set",...
Preview of execution can be done using "set", Please add this line into you script

set -vx
26,035
Posted By posix
Check this one echo 9/8/2013 | awk -F/ '{printf...
Check this one
echo 9/8/2013 | awk -F/ '{printf "%s%02s%02s\n", $3, $2, $1}'
805
Posted By posix
Storing values in an array is bad idea , better...
Storing values in an array is bad idea , better to do some operation with that

for var in ` grep -n pattern file_name | cut -f 1 -d ":" `; do
echo "it has line number:$var" #do your operations...
2,381
Posted By posix
Your system path variable "PATH" has changed by...
Your system path variable "PATH" has changed by you completely.
Common path are /usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:.
To add new path into PATH variable use.

export...
1,878
Posted By posix
Create a function for the sql activity say...
Create a function for the sql activity say sql_function.
I hope using the array you can capture the output.

set -A var_array $(sql_function)

Traverse the array you will get the output.
4,147
Posted By posix
Try the option and value without space. ...
Try the option and value without space.
<script> -p5 -sString
Showing results 1 to 25 of 192

 

Featured Tech Videos

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