It is copying both the files using above commands. The command should be able to separate the files like the following.
-- This will list only the below file. Because it has 8 underscores after LDM_REP.
Similary, The file with 6 underscores should be separated. If i use 6 underscores it will list both the files. I couldn't figure out a way to separate these files
Last edited by Scrutinizer; 07-24-2017 at 12:30 PM..
Reason: code tags
I can't seem to list all the files that begin with a lower case or upper case letter between a-m while being in that directory?
Please help I've tried everything from all the ls commands to even grep commands.
b (5 Replies)
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Hi,
From a Unix book, i'd found that the way to list files in a directory.
But those file info are all not shown, wat is shown is only the file name.
Can anyone pls teach me how to show the file details?
(etc file size, read/write permission, modified date)
my code:
Dir *dirp;
struct... (3 Replies)
Hi experts,
I have several hundred files for everyday each month (below example is September)-
PP023149200709010546.......PP028023200709012300
PP023150200709020023.......PP026096200709022134
..
..
PP021256200709201920.......PP025576200709202218
..
..... (3 Replies)
if i am having files as below in a directory----
-rwxrwxrwx 1 dsadm dstage 43 Nov 21 2005 CheckfreeFtpSeq.err
-rwxrwxrwx 1 dsadm dstage 37 Jun 22 2007 EDIRemitVendorAdviceSeq.log
-rwxrwxrwx 1 dsadm dstage 43 Jun 22 2007 EDIRemitVendorAdviceSeq.err... (2 Replies)
Hi,
I am trying to get a file name only. Could anyone help me on the same.
Meaning I have a file say list.out which holds below output
./xyz/abc.txt
./xyz/hij.txt
I want an output as below
abc.txt
hij.txt
i.e I want to delete everything before abc.txt
Please help me out if any one has... (4 Replies)
Hello.
I want to make an unix script which create a file with the name and the date of creation of the different files that there are in a directory.
Can do you please help me?
Thank you in advance. (3 Replies)
Hi,
I want to list out the files for a particular date recursively along with timestamp and directory name .
I tried using command
ls -lRt this list out all the files along with directory structure
but i want for a particular date so i tried with
ls -lRt | grep 20110809
in... (9 Replies)
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Legends,
I have following contents in the file and i want to list out non-zero values only out of it.
OPge1 03
OPge10 121
OPge11 3
OPCge12 0
OPCge13 0
OPge14 25
OPC15 0
I am using following loop; but not getting desired results
for line in `cat /tmp/raw`
do
Name=`echo $line |... (4 Replies)
Discussion started by: sdosanjh
4 Replies
LEARN ABOUT BSD
lprm
LPRM(1) General Commands Manual LPRM(1)NAME
lprm - remove jobs from the line printer spooling queue
SYNOPSIS
lprm [ -Pprinter ] [ - ] [ job # ... ] [ user ... ]
DESCRIPTION
Lprm will remove a job, or jobs, from a printer's spool queue. Since the spooling directory is protected from users, using lprm is nor-
mally the only method by which a user may remove a job.
Lprm without any arguments will delete the currently active job if it is owned by the user who invoked lprm.
If the - flag is specified, lprm will remove all jobs which a user owns. If the super-user employs this flag, the spool queue will be emp-
tied entirely. The owner is determined by the user's login name and host name on the machine where the lpr command was invoked.
Specifying a user's name, or list of user names, will cause lprm to attempt to remove any jobs queued belonging to that user (or users).
This form of invoking lprm is useful only to the super-user.
A user may dequeue an individual job by specifying its job number. This number may be obtained from the lpq(1) program, e.g.
% lpq -l
1st: ken [job #013ucbarpa]
(standard input) 100 bytes
% lprm 13
Lprm will announce the names of any files it removes and is silent if there are no jobs in the queue which match the request list.
Lprm will kill off an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automatically
restarted upon completion of file removals.
The -P option may be usd to specify the queue associated with a specific printer (otherwise the default printer, or the value of the
PRINTER variable in the environment is used).
FILES
/etc/printcap printer characteristics file
/usr/spool/* spooling directories
/usr/spool/*/lock lock file used to obtain the pid of the current
daemon and the job number of the currently active job
SEE ALSO lpr(1), lpq(1), lpd(8)DIAGNOSTICS
``Permission denied" if the user tries to remove files other than his own.
BUGS
Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified.
4.2 Berkeley Distribution October 22, 1996 LPRM(1)