07-07-2013
Thank you so much. But does that also create a new file and write all the "good" data into it without overwriting?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey friends,
Here I am with another query. I have a TXT file.
Foe an example
EX ID : B-Mezine
....
...
...
Some lines of text (Not fixed in length n no of lines)..
...
...
..
END EX ID
Some blank lines in between two records(Not fixed in numbers)
EX ID : B-Mezine
....
...... (20 Replies)
Discussion started by: anushree.a
20 Replies
2. Shell Programming and Scripting
Hii friends,
I am a newbie to unix/shell scripting and got stuck in implementing a functionality.Dear experts,kindly spare some time to bring me out of dark pit :confused:..
My requirement is somewhat wierd,let me explain what i have and what i need to do...
1) there are several excel... (1 Reply)
Discussion started by: 5ahen
1 Replies
3. UNIX for Dummies Questions & Answers
hiii, Help me out..i have a huge set of data stored in a file.This file has has 2 columns which is latitude & longitude of a region. Now i have a program which asks for the number of points & based on this number it asks the user to enter that latitude & longitude values which are in the same... (7 Replies)
Discussion started by: reva
7 Replies
4. Programming
Hello, i'm new to the forum and so am i to C programming.
Recently i've gotten a task to create a program that will read an existing .bin file and copy the data to a non existing (so i have to create it) .txt file (some type of conversion)
Now, i now how to put the arguments, opening and... (5 Replies)
Discussion started by: Lyric
5 Replies
5. Programming
I have a series of observations of which one column is sometimes missing (zero):
date temp delta
1977 284.54 29.84
1978 149.82 0
1979 320.71 28.45
1980 176.76 0
1981 854.65 0
1984 817.65 0
1985 990.58 27.98
1986 410.21 0
1987 405.93 0
1988 482.9 0
What I would like to achieve is a... (8 Replies)
Discussion started by: figaro
8 Replies
6. Shell Programming and Scripting
I have the following that I'd like to do:
1. I have split a file into separate files that I placed into the /tmp directory. These files are named F1 F2 F3 F4.
2. In addition, I have several directories which are alphabetized as dira dirb dirc dird.
3. I'd like to be able to copy F1 F2 F3 F4... (2 Replies)
Discussion started by: newbie2010
2 Replies
7. Solaris
Hello people,
I have a question regarding transferring data from one file server to another.
The server is a Solaris 9 box
The old file server is connected via Ethernet cable, and the new file server we are switching is a Fiber channel.
can I use the
dd if=server:/app1 of=server2:/app1
... (2 Replies)
Discussion started by: br1an
2 Replies
8. UNIX for Dummies Questions & Answers
Hi
I think this should be relatively simple but I can't figure it out. I have several files with the same name in different folders within a directory (the output of a program that I ran). Something like this:
./myAnalysis/item1/round1/myoutput.txt
./myAnalysis/item1/round2/myoutput.txt... (2 Replies)
Discussion started by: jullee
2 Replies
9. Programming
I need to fix an SQL statement in MySQL that should calculate a field using values from two of the columns and I prefer to do this using set-based programming, ie not procedural. What needs to happen is that in a separate column called "delta" the value of "level" is copied depending on whether... (3 Replies)
Discussion started by: figaro
3 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I have a log file that has several sections "BEGIN JOB, End of job" like in the following example:
19/06/12 - 16:00:57 (27787398-449294): BEGIN JOB j1(27787398-449294) JOB1
19/06/12 - 16:00:57 (27787398-449294): DIGIT: 0
number of present logs : 1
19/06/12 - 16:00:57... (4 Replies)
Discussion started by: mvalonso
4 Replies
SRM(1) General Commands Manual SRM(1)
NAME
srm - securely remove files or directories
SYNOPSIS
srm [OPTION]... FILE...
DESCRIPTION
srm removes each specified file by overwriting, renaming, and truncating it before unlinking. This prevents other people from undeleting or
recovering any information about the file from the command line.
srm, like every program that uses the getopt function to parse its arguments, lets you use the -- option to indicate that all following
arguments are non-options. To remove a file called '-f' in the current directory, you could type either "srm -- -f" or "srm ./-f".
OPTIONS
-d, --directory
ignored (for compatibility with rm(1))
-f, --force
ignore nonexistent files, never prompt
-i, --interactive
prompt before any removal
-r, -R, --recursive
remove the contents of directories recursively
-s, --simple
only overwrite with a single pass of random data
-m, --medium
overwrite the file with 7 US DoD compliant passes (0xF6, 0x00, 0xFF, random, 0x00, 0xFF, random)
-z, --zero
after overwriting, zero blocks used by file
-n, --nounlink
overwrite file, but do not rename or unlink it
-v, --verbose
explain what is being done
--help display this help and exit
--version
output version information and exit
NOTES
srm can not remove write protected files owned by another user, regardless of the permissions on the directory containing the file.
The -s option overrides the -m option, if both are present. If neither is specified, the 35-pass Gutmann algorithm is used.
Development and discussion of srm is carried out at <http://sourceforge.net/project/?group_id=3297>, which is also accessible via
<http://srm.sourceforge.net>.
SEE ALSO
rm(1)
Mac OS X 20 September 2004 SRM(1)