9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I have written a script to capture system performance every hour and redirected to output file. How to overwrite the file every next day?
Thanks
Suresh (4 Replies)
Discussion started by: suresh3566
4 Replies
2. Shell Programming and Scripting
Dear users,
I've been looking for a way to overwrite files only if both have the same size, how could I do this? any help is very appreciated.
Best regards,
Gery (5 Replies)
Discussion started by: Gery
5 Replies
3. UNIX for Advanced & Expert Users
How do you overwrite a directory with another directory? I know you can delete your directory then copy your directory over, but I would think there would be a way to do this in one step. (5 Replies)
Discussion started by: cokedude
5 Replies
4. UNIX for Dummies Questions & Answers
my script is:
awk '...mycode...' file1.txt > file2.txt
and i want to overwrite file2.txt eachtime I run this script. but it says:File exists! :( I have tried
awk '...mycode...' file1.txt >| file2.txt but it again says:Missing name for redirect! :confused::confused:
what is this? (2 Replies)
Discussion started by: gc_sw
2 Replies
5. Shell Programming and Scripting
I'm debugging a ksh script written by someone else that does the following:
It runs a command and redirects stdout to a file called dberror that already exists using ">". This command fails with the following error:
The file access permissions do not allow the specified action. dberror:... (1 Reply)
Discussion started by: savage66
1 Replies
6. Shell Programming and Scripting
Hi guys,
I checked the knowledge base before posting this question.
is there any way by which you can ALWAYS ALLOW file overwrite in AWK?. i.e. an option similar to noclobber in Korn shell.
I don't to check for files existence and remove them. (1 Reply)
Discussion started by: Moon Noon
1 Replies
7. Shell Programming and Scripting
Dear All,
I have text file like this:
Header
Record 1
Record 2
.......
Record n
Tail
This line of code :
awk '{ if ( NR == 1 ) { head=substr($0,1,300);} else { last = substr($0,1,300);}END{printf "Header is : %-300s Trailer is : %-300s\n", head, last}' filename
converted Header... (11 Replies)
Discussion started by: 33junaid
11 Replies
8. UNIX for Dummies Questions & Answers
Hi
im using the following to copy a file to a directory, the user being prompted to overwrite if the file already exists in that directory,
cp -i myfile /home/brief/bin2
but this reveals the path of the directory when being prompted to overwrite (below)
cp: overwrite... (2 Replies)
Discussion started by: ali999
2 Replies
9. UNIX for Dummies Questions & Answers
if i want to pipe output to a file, say,
cat abc.dat > abc.txt, how do i make it replace the existing file? (9 Replies)
Discussion started by: Duckman
9 Replies