Hi,
sorry for bothering with this easy problem but I can't understand...
I've a file like this:
I would like to create a file like this:
I've tried:
but I've obtained this:
there are two problems:
why
can not delete all
?
why script create an empty line at the end of the OUTPUT.txt file ?
Root emailed me this message and thats ok it is supposed to. The thing that concerns me is that the ADMIN password came in plain text. I Xed it out for the purpose of this message of course.
Is there a way for me to set this so the password comes encrypted? OR is not included at all in the... (4 Replies)
I'm attempting to print to a networked konica printer. No linux drivers that I know of exist, but we've always used HP 5si drivers and have had good results.
We just loaded a box up with CentOS 5, and now when we print any sort of file from the command line (lp -dkonica <filename>), the text is... (0 Replies)
Sed: Delete lines in files that contain other than 'a-z' ,'0-9', '.' and '-'
Hello,
I'm looking for a shell command or maybe a small php loop to delete lines in files.txt (in the same directory) that contain character other then 'a-z' ,'0-9', '.' and '-'
All line that have characters like... (4 Replies)
im a new student in programming and im stuck on this question so please please HELP ME. thanks.
the question is this:
enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Hi All ,
I want to delete files from /tmp directory created by "xxxx" id.
because i got the list says more than 60 thousand files were created by "xxxx" id since 2002.
The /tmp directory has lot of files created by different user ids like root,system etc..
But, i need a script to... (2 Replies)
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Hello!
I've got a very big file (from tokenization) which has one word for line.
How is it possible then to rebuild the "original" text, knowing that <s> and </s> are the sentence-delimiters?
My file looks like this:
<s>
&&
tanzania
na
Afrika
kwa
ujumla
ambiwa
na
taifa
kubwa... (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Create a Shell script that looks for all text files in your home directory (including subdirectories).
List... (3 Replies)
Hi everyone,
I want to know, if there is a way to modify one line in a text file with unix script, with out re-writing all the file.
For example, i have this file:
CONFIGURATION_1=XXXX
CONFIGURATION_2=YYYY
CONFIGURATION_3=ZZZZ
supose i have a command or function "modify" that... (7 Replies)
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies
LEARN ABOUT DEBIAN
pvmfhostsync
HOSTSYNC(3PVM) PVM Version 3.4 HOSTSYNC(3PVM)NAME
pvm_hostsync - Get time-of-day clock from PVM host.
SYNOPSIS
C #include <sys/time.h>
int info = pvm_hostsync( int host, struct timeval *clk,
struct timeval *delta )
Fortran call pvmfhostsync( host, clksec, clkusec, deltasec, deltausec, info )
PARAMETERS
host TID of host.
clk (or clksec and clkusec) Returns time-of-day clock sample from host.
delta (or deltasec and deltausec) Returns difference between local clock and remote host clock.
DESCRIPTION
pvm_hostsync samples the time-of day clock of a host in the virtual machine and returns both the clock value and the difference between
local and remote clocks.
To reduce the delta error due to message transit time, local clock samples are taken before and after reading the remote clock. Delta is
the difference between the mean local clocks and remote clock.
Note that the delta time can be negative. The microseconds field is always normalized to 0..999999, while the sign of the seconds field
gives the sign of the delta. For example:
3.25 Sec = 3,250000
0 = 0,0
-1 uSec = -1,999999
-1 Sec = -1,000000
-1.1 Sec = -2,999000
In C, if clk or delta is a null pointer, that parameter is not returned.
ERRORS
If pvm_hostsync is successful, it returns PvmOk. These error conditions can be returned by pvm_hostsync
PvmSysErr
pvmd not responding.
PvmNoHost
specified host not in virtual machine.
PvmHostFail
host is unreachable (and thus possibly failed)
SEE ALSO pvm_config(3PVM)
20 February, 1994 HOSTSYNC(3PVM)