Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: pracheth
2,884
Posted By pracheth
Execute a encrypted shell script
Hi All,

I have a shell script test.sh. I encrypted it using the command
vi -x test.sh , and protected it with a password to view the file.

When i tried to execute the file with ./test.sh..It...
730
Posted By pracheth
Writing script to log
Hi,
I have a shell script which contains
echo 'hello' >> $logfile
while executing my script i want the hello should be written in log file and also hello should be printed.

Thanks in Advance
1,313
Posted By pracheth
How to find no of underscores in a variable?
Hi
i have a variable var=a_b_c
i want command to find no. of underscores in a variable

Thank you
2,023
Posted By pracheth
Hi Thank you for your quick response. Adding...
Hi
Thank you for your quick response.
Adding to that..how can i find whether a particular variable has two underscores in it.
suppose var=a_b_c
i want to know if var has two underscores or not
2,023
Posted By pracheth
No. of underscores in a file name
Hi

I want to filter my files which has more than 1 underscores in it.how can i achieve this.
Ex: if my file name is a_b_c, a_b.
my command should result only a_b_c

Thanks
Pracheth
1,774
Posted By pracheth
Hi Krishmaths, Thanks for your quick...
Hi Krishmaths,

Thanks for your quick response..
can you elaborate more on ./script
my script name is logproc, as i dont want to exit my terminal should I execute as
./logproc
I tried this but...
1,774
Posted By pracheth
Exit the shell script
Hi,

suppose my script is sample.sh
i have to run using '. ./sample.sh'
as . ./script file always executes the script in my parent shell.
when my sample.sh contains exit command .. my...
1,098
Posted By pracheth
PSU files will be generated as per the values of...
PSU files will be generated as per the values of day and currday when ever they change. I want a command, where by using the currday and day values i want to exactly search what is my PSU file...
1,098
Posted By pracheth
Find file of particular pattern
Hi All,

I have a file PSU_ 20130805_201308041234522

i want to search this file where variable day=20130805 and curday=20130804
after currday date some numbers will be added.how to search this...
1,338
Posted By pracheth
am using korn shell.. $ echo $SHELL /bin/bash
am using korn shell..
$ echo $SHELL
/bin/bash
1,338
Posted By pracheth
Shell script not getting executed
Hi

As per my requirement when I run . ./file.sh am getting the following error
-bash:ELF: command not found
when i execute as ./file.sh it is getting executed.How to resolve this.

Thanks...
851
Posted By pracheth
Environment variable need to be incremented
Dear All,

I have created a environment variable say VAR and initialised it to 0.when i do
echo $VAR it is showing 0.I have written a shell script with one line VAR=$((VAR+1))
and after...
Showing results 1 to 12 of 12

 

Featured Tech Videos

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