10-10-2018
this is our linux version 2.6.32-696.10.1.el6.x86_64.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to delete files that are one day old
condition is files should be of current month only ie if iam running script on 1 march it should not delete files of 28 feb(29 if leap year :-)}
any modifications to
find $DIR -type f -atime +1 -exec rm -f{}\; (4 Replies)
Discussion started by: maverick
4 Replies
2. Shell Programming and Scripting
Hai all
i want to grep the particular pattern and move the mathing records to torget file and delete the matching recodrs from source file.
patterns are position based, like
13413432,aaaaaaa,dsfdddddd,34234324,22224555
13413432,aaaaaaa,dsfdddddd,12234324,11222455
i want to move the... (1 Reply)
Discussion started by: readycpbala
1 Replies
3. Shell Programming and Scripting
I have a big file with "|" delimiter. I want to delete all the records that have 'abc' in the 2nd field. How can i do that? I am not abe to open it in VI that is why i need to do it from outside. Please suggest (6 Replies)
Discussion started by: dsravan
6 Replies
4. Shell Programming and Scripting
Dear All,
I am not able to remove the files in my AIX 5.3 server.
My files List
/iims-home/data/uat1/batch/staging
-rw-r--r-- 1 iims iims 5743 Jun 12 09:04 ErrorReport2008-05-20 09-04-18.doc
-rw-r--r-- 1 iims iims 191213683 Jun 12 09:05... (1 Reply)
Discussion started by: bvijaycom
1 Replies
5. UNIX and Linux Applications
Hi,
I have a file whose size is not zero but it has no records and another which has records. I want to delete all the files that have no records in it (even if size > 0). How do I do it?
I have tried the below option
#!/bin/ksh
temp1 = $(wc -l < INVX102C.sf)
if ; then
echo "Data... (3 Replies)
Discussion started by: sangharsh
3 Replies
6. Shell Programming and Scripting
I have a directory /opt/targets which generates more than 1000 files per day and I want to delete all the files which are more than 1 day old...ie 24hrs+
Please help.. (3 Replies)
Discussion started by: sunilrk07
3 Replies
7. Shell Programming and Scripting
Hi Experts ,
At a particular dir , How to delete subirectories that are more than 1 day old AND have NO files in them.
PS : -empty option is not working at my Sun OS version.
Thanks,
A (6 Replies)
Discussion started by: ajaypatil_am
6 Replies
8. Shell Programming and Scripting
Hi,
Can any one help me...
the records are not deleting when I run the below script.
But if I issue the same delete command manually, the records are getting deleted.
script:
#!/bin/ksh
USAGE_STRING="USAGE $0 "
if
then
echo "SORRY you need to be user 'mqm'. Only 'mqm' has... (5 Replies)
Discussion started by: zxcjggu708
5 Replies
9. Shell Programming and Scripting
My objective is to get the non matching records of previous day with current day.
eg, file1 contains
1 a
2 b
and file2 contains:
2 b
3 c
then expected output is
3 c¨
another example
file 1 contains:
1 a
2 b
file 2 contains
1 c
2 b (8 Replies)
Discussion started by: newbie2014
8 Replies
10. Shell Programming and Scripting
friends
how I can delete files from a directory for the current date? (2 Replies)
Discussion started by: tricampeon81
2 Replies
LEARN ABOUT CENTOS
linux64
SETARCH(8) System Administration SETARCH(8)
NAME
setarch - change reported architecture in new program environment and set personality flags
SYNOPSIS
setarch <arch> [options] [program [arguments]]
arch [options] [program [arguments]]
DESCRIPTION
setarch This utility currently only affects the output of uname -m. For example, on an AMD64 system, running 'setarch i386 program' will
cause 'program' to see i686 (or other relevant arch) instead of x86_64 as machine type. It also allows to set various personality options.
The default program is /bin/sh.
OPTIONS
-v, --verbose
Be verbose.
-h, --help
Display help (it is also displayed when setarch takes no arguments).
-V, --version
Output version information and exit.
--uname-2.6
Causes the program to see a kernel version number beginning with 2.6.
-3, --3gb
Specifies that processes should use a maximum of 3GB of address space on systems where it is supported (ADDR_LIMIT_3GB).
--4gb Ignored (for backward compatibility only).
--list List architectures that can be set.
-B, --32bit
Turns on ADDR_LIMIT_32BIT.
-F, --fdpic-funcptrs
Userspace function pointers point to descriptors (turns on FDPIC_FUNCPTRS).
-I, --short-inode
Turns on SHORT_INODE.
-L, --addr-compat-layout
Changes the way virtual memory is allocated (turns on the ADDR_COMPAT_LAYOUT).
-R, --addr-no-randomize
Disables randomization of the virtual address space (turns on ADDR_NO_RANDOMIZE).
-S, --whole-seconds
Turns on WHOLE_SECONDS.
-T, --sticky-timeouts
Turns on STICKY_TIMEOUTS.
-X, --read-implies-exec
Turns on READ_IMPLIES_EXEC.
-Z, --mmap-page-zero
Turns on MMAP_PAGE_ZERO.
EXAMPLES
setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm
setarch ppc32 -v -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm
setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm
AUTHOR
Elliot Lee <sopwith@redhat.com>
Jindrich Novy <jnovy@redhat.com>
AVAILABILITY
The setarch command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils
/util-linux/>.
util-linux September 2011 SETARCH(8)