10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good day guys,
I'm having trouble in creating a logic when it comes to replacing the values inside a file.
I tried using sed command but it just doesn't work the way I want it to be.
Here is what I'm trying to achieve.
If my input file contains the values below.
NAME++GUEST1 ++GUESS2++... (3 Replies)
Discussion started by: asdfghjkl
3 Replies
2. Shell Programming and Scripting
Hi ,
DIR1 has only one file with .txt extension , trying to get the size of that file using the following script
#!/bin/ksh
foldr_1="/etc/DIR1"
#echo "$foldr_1"
sze_fdr1=$(ls -ltr foldr_1/*.txt |awk '{ print $5 }')
echo "$sze_fdr1"
After executing the above script getting... (1 Reply)
Discussion started by: smile689
1 Replies
3. Shell Programming and Scripting
Hi,
Taking sum up all values inside the file by using the below command:
paste -sd+ filenmae | bc
Getting some error like "0705-001: building space exceeded on line1 stdin"
The original data looks like
SPACE SPACE SPACE 0.123 JOBNAME1
SPACE SPACE 20.325 JOBNAME2
SPACE SPACE... (2 Replies)
Discussion started by: NareshN
2 Replies
4. Shell Programming and Scripting
Hi,
I have initailized a varaible EBID as typeset Long EBID=0
i am calculating value of EBID using certian formula as below:
(( CURR_EBID= ($BANDINDEX << 27) | ($CURR_FREQ << 16) | ($CURR_CELLID << 4) | $CURR_SECTOR_VALUE ))
return $CURR_EBID
The output is as below:
+ (( CURR_EBID=... (6 Replies)
Discussion started by: kasanur
6 Replies
5. Shell Programming and Scripting
Hi Guys
I am using one configuration file for reading some time out values.The format of the file is
A.Type = Number
A.Val = 2000
B.Type = Number
B.Val = 4000
Now my requirement is I need to write a shell script in Solaris where i need to increase these timeout values by 10 times of... (3 Replies)
Discussion started by: mr_deb
3 Replies
6. Shell Programming and Scripting
Dear All,
i am new to shell scripting, I am working on embedded system based on linux.I am supposed to the read the configuration file and edit another file.
presently I would like to read from the configuration file.It would be having values file one below.
There is chance of entering... (6 Replies)
Discussion started by: Ratheendran
6 Replies
7. Shell Programming and Scripting
Hi,
I have many perl scripts in single server, i am new to perl,
suggestions are appreciated.
connection string is hardcoded in all perl scripts
i need to make change the all perl scripts and there should be only one config file available in that server.
destination database is mysql... (3 Replies)
Discussion started by: prakash.gr
3 Replies
8. Shell Programming and Scripting
hello gurus,
When i run the command on shell
webalizer -p -n mydomain.com -c /path/to/my/log/webalizer.conf
it works fine and it creates stats for the given mydomain.com in the target output directory
but when i put it in a script same command and parameters but it goes weird and it... (0 Replies)
Discussion started by: eyes_drinker
0 Replies
9. Shell Programming and Scripting
I have to find out the file system location of the script file inside script. for example a script "abc.sh" placed anywhere in the file system when executed shold tell by itself the location of it.
example
#pwd
/
#./abc
this is /
#cd /root
#./abc
this is /root
#cd /
#/root/abc
this... (10 Replies)
Discussion started by: asami
10 Replies
10. Shell Programming and Scripting
Hi,
I would like to write a Korn shell script which will remove files older than a certain date. In my script, it will read a configuration file with the following entries:
# <directory> <filename wildcard>
#
/home/philip/log *.log
/home/philip/log1 delete-me*.log
The... (1 Reply)
Discussion started by: philip_dba
1 Replies