10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have two files
File1
frame,007C1 server1_Parent
frame,007C3 server2_Silver
frame,007EE server3_Bronze
frame,00855 server4_Parent
frame,00856 server4_Parent
frame,00858 server5_Parent
frame,008FA server6_Silver
frame,008FB server6_Silver
frame,008FC server6_Silver... (2 Replies)
Discussion started by: ranjancom2000
2 Replies
2. Shell Programming and Scripting
Hello,
i'm trying to force a command to read every second from an interface
watch -n1 (command) /dev/x | cat >> output
but it continue to overwrite the file, without append the content
Thanks and advace for help as usual
regards (4 Replies)
Discussion started by: Board27
4 Replies
3. Shell Programming and Scripting
I'm overwriting .unl in first run and after that in seq. runs appending by following method. Any other method or command can do it easier?
ARY_VALUE=1
while
do
if ; then
type.sql > out.unl
else
type.sql >>out.unl
fi
ARY_VALUE--;
done (3 Replies)
Discussion started by: Roozo
3 Replies
4. Programming
Hi,
I have a script which append the .csv file which already exist but in my scenarion every time instead of appending the contect it overwrite the file and creating new .csv file.
SET ORAUSR=ops$371664
SET ORAPWD=Oracle12345
SET ORADB=orcl
SET DBCON=%ORAUSR%/%ORAPWD%@%ORADB%
sqlplus... (1 Reply)
Discussion started by: tushar_spatil
1 Replies
5. UNIX for Dummies Questions & Answers
Noob question!
I know almost nothing so far, and I'm trying to teach myself from books, on a typical command line without using scripts how would I append output from a sort to a file in a completely different directory?
example:
If I'm sorting a file in my documents directory but I... (2 Replies)
Discussion started by: Byrang
2 Replies
6. Shell Programming and Scripting
I'm trying to output the contents of the infile to the outfile using Append.
I will want to use append but the syntax doesn't seem to be working !
Input file (called a.txt) contains this:
a
a
a
b
b
b
I'm running shell script (called k.sh) from Unix command-line like this:
./k.sh .... (1 Reply)
Discussion started by: script_op2a
1 Replies
7. Shell Programming and Scripting
Hi All, can you help me with this:
grep XXX dir/*.txt|wc -l > newfile.txt - this put the results in the newfile.txt, but I want to add another column in the newfile.txt, string 'YYYYY', separated somehow, which corresponds on the grep results?
For example grep will grep XXX dir/*.txt|wc -l >... (5 Replies)
Discussion started by: apenkov
5 Replies
8. UNIX for Dummies Questions & Answers
I've setup a cron job that greps a file every five minutes and then writes (appends) the grep output/result to another file:
grep "monkey" zoo.log | tail -1 >> cron-zoo-log
Is there any way I can add the date and time (timestamp) to the cron-zoo-log file for each time a new line was added?
... (12 Replies)
Discussion started by: Sepia
12 Replies
9. Shell Programming and Scripting
Hi All,
I am writing a Perl script such that the output from "perl myscript.pl file1" to be appended to another file name called file2.
I tried out with the below code but couldn't work.
Can any expert give me some advice?
open(OUTPUT, 'perl myscript.pl file1 |');
close OUTPUT;... (7 Replies)
Discussion started by: Raynon
7 Replies
10. Shell Programming and Scripting
Hi,
I have a script below. It get's the data from the output of a script that is running hourly. My problem is every time my script runs, it deletes the previous data and put the current data. Please see output below. What I would like to do is to have the hourly output to be appended on the... (3 Replies)
Discussion started by: ayhanne
3 Replies