10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want a script which increments the count when the script runs. Basically I want to send an password reset email notification for an application, the password value should be keep on changing whenever the script is executed for example, first time i execute it should be password1, second time... (2 Replies)
Discussion started by: JAGADESH GN
2 Replies
2. Shell Programming and Scripting
Hi Gents.
Please can you help me to solve a problem.
I have a long list of files, which I need to change the time stamp.
-r--r--r-- 1 geo2 geovect 47096216 Feb 8 10:40 00000009.segd
-r--r--r-- 1 geo2 geovect 47096216 Feb 8 10:40 00000010.segd
-r--r--r-- 1 geo2 geovect 47096216 Feb ... (11 Replies)
Discussion started by: jiam912
11 Replies
3. Shell Programming and Scripting
Hi,
I have a small query with gawk which i'm unsure how to solve. My csv input data is as follows:
1 58352.9 34549 -469.323 LINE_149
2 58352.9 34499 -469.323 LINE_149
3 58352.9 34549 -469.323 LINE_151
4 58352.9 34503.4 -489.841 LINE_151
5 58352.9 34549 -469.323 LINE_152
6 58352.9... (1 Reply)
Discussion started by: theflamingmoe
1 Replies
4. Shell Programming and Scripting
hi experts,
my requirement is like this i need to develop a shell script to update date part with new incremental date time in file some 'X' which is kept at some server location incrementing every two hours.as i am new to this scripting i need support from u people,thanx in advance (1 Reply)
Discussion started by: amanmro
1 Replies
5. Shell Programming and Scripting
hi all,
I need help for incrementing time in hh:mm:ss format like for example :
when i have a values like 02:07:16 I want to increment this value with 5 secs till it reaches a condition.
Can someone help me with this.
Thanks in advance. (2 Replies)
Discussion started by: hitha87
2 Replies
6. Shell Programming and Scripting
hi Friends,
Today_Dt=`date "+%Y-%m-%d"`
So the Today date is 2010-05-03
I have a file which has date values as below
2010-04-27
2010-04-02
2010-04-18
2010-04-28
2010-04-29
.. (1 Reply)
Discussion started by: Gopal_Engg
1 Replies
7. Shell Programming and Scripting
Hi,
I have a variable lets say DATA_DATE.
I have to pass some value to this variable in YYYYMMDD format.
lets say today I have passed this variable as :
DATA_DATE=20100107
Then pls help me how to calculate another variable DATA_DATE1 (which is DATA_DATE+1).
The code should work... (3 Replies)
Discussion started by: 46019
3 Replies
8. Shell Programming and Scripting
Hi All,
I have a variable n that stores a number.
Eg. echo $n comes out to be 120.
I need to print 121 using echo command on n.
Please advice.
Thanks in advance !! (4 Replies)
Discussion started by: learning_skills
4 Replies
9. Shell Programming and Scripting
Hello
Does anyone know how to auto-increment the value of a variable, preferably using awk or sed?
I need to read values from a file and auto-increment those values to use them as line numbers
I'd be doing:
while read line do
# auto-increment
sed -n${line}p file> file1
done... (6 Replies)
Discussion started by: loperam
6 Replies
10. Shell Programming and Scripting
Hi All,
I have created a script...
#!/bin/sh
datafile=ABC2008101601.OUT
indfile=ABCIND20081016.1.OUT
waittime=600
starttime=0
while
do
if
then
echo "Indicator file has arrived."
break
else
sleep 10;
((starttime=$starttime+10))
echo $starttime (2 Replies)
Discussion started by: Amit.Sagpariya
2 Replies