Hi all,
I have the following script:
-------------------------------------------------
#SCRIPT TO CHECK WHO HAS ACCESSED THE LOG/FILE IN PAST 'N' MINUTES, AND MAIL ACCORDINGLY.
MYPATH="/clocal/mqbrkrs/user/mqsiadm/sanjay/"
MAIL_RECIPIENTS="vg517@dcx.com"
Subject="File accessed in last... (6 Replies)
I want to do a grep with AND condition.
I have three files.
file1.txt
========
UNIX
......
WINDOWS
........
ORACLE
file2.txt
========
UNIX
.......
WINDOWS
...and many such files in a directory (6 Replies)
Hi ,
I have a peculiar problem.
i have an if block like this
if ;
then
echo " todays date is " ${date} >> log_file
echo " file count is " $ count >> log_file
mv filename1 filename 2
else
echo "no files available ">> log_file
fi
the echo statement "no files available " is not... (2 Replies)
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
Hi
I have 2 files test1 & test2.
Test1 contains :
BSC
AFCN
Test2 contains:
AFCN
I than use the following command :
diff file1 file2
which displays than displays : 2d1
< BSC
Basically I want to confirm that except for "BSC", AFCN is the only word in each file.So when I do a... (6 Replies)
there are lot of files where in mostly all the file contains 2columnsAl,1
Ail,13
Al,3
Al,1
Al,3
Al,2
Al,3
Al,1
Al,1
Al,1
My requirement is i wanted only the second column of every file as a column ony in the base file... I used paste command... but it is not helping as I'm using while... (7 Replies)
if
then
echo "Entry Valid : ${x_oug}"
else
echo "Entry Invalid : " 0
fi
In the above code the 3rd line is not working... it does not print anything
I tried following as well .. but no luck!
echo "Entry Valid : ... (13 Replies)
HI
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
like
if ]; then
return 0
fi
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
LEARN ABOUT DEBIAN
synce-pcp
PCP(1) http://synce.sourceforge.net/ PCP(1)NAME
pcp - copy files
SYNOPSIS
pcp [-d LEVEL] [-p DEVNAME] [-h] [:]SOURCE [[:]DESTINATION]
DESCRIPTION
pcp copies a file on a device connected through SynCE or between a device connected through SynCE and host PC.
Forward slashes ('/') in remote file names specified on the command line are converted to backward slashes ('').
This tool must be run as the same user as the dccmd daemon.
OPTIONS -r Copy directories recursively.
-d LEVEL
Set debug log level:
0 - No logging (default)
1 - Errors only
2 - Errors and warnings
3 - Everything
-p DEVNAME
Use the device with the given name, instead of the default.
-h Display help message.
[:]SOURCE
Full path to the source filename. When the filename is prefixed with a colon (':'), it will be treated as a remote filename, other-
wise as a local filename.
[:]DESTINATION
Full path to the destination filename. When the filename is prefixed with a colon (':'), it will be treated as a remote filename,
otherwise as a local filename.
If this parameter is omitted and the source filename is local, the local file will be copied to a file with the same name in the "My
Documents" directory on the device connected through SynCE.
If this parameter is omitted and the source filename is remote, the remote file will be copied to a file with the same name in the
current directory.
EXAMPLES
Copy a file from host computer to remote device:
pcp download/game.cab ":/Temporary Files/game.cab"
Copy a file from remote device to host computer:
pcp ":/My Documents/snore.wav" /tmp/snore.wav
Copy a file from host computer to remote device into the "My Document" folder - you can leave off the last parameter:
pcp "work/mytext.txt"
Copy a file from remote device to host computer into the current directory - you can leave off the last parameter:
pcp ":/My Documents/snore.wav"
Copy a file from one location on the remote device to another:
pcp ":/My Documents/important.pwi" ":/My Documents/important.backup.pwi"
AUTHOR
This manual page was written by David Eriksson <twogood@users.sourceforge.net>.
SEE ALSO synce(1)pcp(1)pls(1)prm(1)pmkdir(1)prmdir(1)The SynCE project November 2002 PCP(1)