10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
#!/bin/bash
n=$l; typeset -a v
x=$(< input.dat)
check(){
if; then
sed 's/Test/Proc/g' file.sh >fl.sh
else
exit 13
fi
}
check $n
while ; do
x=`expr $x -l`
v=$x
done
less fi.sh l>/dev/null&& echo yes || exit 1
echo v= ${v
}
exit 0
I have file.sh and input.dat in the current... (3 Replies)
Discussion started by: bananasprite
3 Replies
2. UNIX for Beginners Questions & Answers
hi Folks,
Can anyone help with changing the color of the words in a linux shell script?
I get how to change default background etc in putty, but for some reason the text in the script has different colors for different parts of the cript.
Is there a way to have one color in a linux shell... (5 Replies)
Discussion started by: jonnyd
5 Replies
3. Shell Programming and Scripting
Hi, iam new to unix scripting need a help.
The scenario is i have 2 text files.
a.txt has
colA colB colC colD
JKU1270A JKU1042A 9 1
JKU1270A JKU1042B 9 1
JKU1270A JKU1042C 9 1
JKU1270B JKU1107B 9 1
JKU1270B JKU1107C 9 1... (1 Reply)
Discussion started by: tech_frk
1 Replies
4. Homework & Coursework Questions
Me and a friend are working on a project, and We have to create a script that can go into a file, and replace all occurances of a certain expression/word/letter with another using Sed. It is designed to go through multiple tests replacing all these occurances, and we don't know what they will be so... (1 Reply)
Discussion started by: Johnny2518
1 Replies
5. Shell Programming and Scripting
Hi,
Iam a novice to unix shell scripting, need a help from you guys.The scenario is as follows, i have the following Text file.
order No Company Category
21 aaa A
24 aaa A
87 aaa B
98 aaa B
23 abc A
45 abc B
25 bbb A
76 wes A
66 ... (6 Replies)
Discussion started by: tech_frk
6 Replies
6. Shell Programming and Scripting
Hi,
I have a file in which I have to replace the text with system date. The text needs to be changed on daily basis automatically.
Assume, in "test.txt", I have below lines:
LOAD FILE
MYFILE 'c:/test/test_2010_09_24.txt
-----
-----
In the above, MYFILE value changes every day, the... (1 Reply)
Discussion started by: psnmak
1 Replies
7. Shell Programming and Scripting
Hi,
Below is my issue which I desperately need and I want a shell script which can do this job.
I need this script as I m planning to put this for a system health check. Please assist me.
1. There are 10 log files in a particular location.
2. open each log file. Goto to the end of the... (4 Replies)
Discussion started by: kashriram
4 Replies
8. Shell Programming and Scripting
Hi,
Iam in a need for a script/function in KSH where I want to read a text file (property file) in block by block. Here is the example:
Heading Name Descripton
Block Block1 Value1 Description
Property Name Value
Property Name Value
Property Name Value
Property Name Value
Property Name... (7 Replies)
Discussion started by: ysreenivas
7 Replies
9. Shell Programming and Scripting
Could someone please tell me how to delete all lines above a line which contains a particular string? (possibly using SED command)
I know how to do this if the target string appears in only one line of file but when it appears in multiple lines it only deletes from the first line which the string... (3 Replies)
Discussion started by: stevefox
3 Replies
10. Shell Programming and Scripting
Hi ,
am newbie to this forum. I need the script ( any shell ) for the following problems.
1. Write a script to rotate the logs.
2. Write a script to check the file system size and mail the super user about their % used.
3. Write a script to check the amount of space used by each of the... (1 Reply)
Discussion started by: ganeshinforum
1 Replies