* File size
@ 2004-08-08 9:00 Anindya Mozumdar
2004-08-08 9:16 ` Sascha Retzki
` (6 more replies)
0 siblings, 7 replies; 16+ messages in thread
From: Anindya Mozumdar @ 2004-08-08 9:00 UTC (permalink / raw)
To: linux-admin
Hi,
How can I make a file zero length without deleting the contents of
the file manually through an editor ?
Anindya.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 9:00 File size Anindya Mozumdar
@ 2004-08-08 9:16 ` Sascha Retzki
2004-08-08 11:44 ` Roberto Vanto
` (5 subsequent siblings)
6 siblings, 0 replies; 16+ messages in thread
From: Sascha Retzki @ 2004-08-08 9:16 UTC (permalink / raw)
To: linux-admin
Am So, 2004-08-08 um 11.00 schrieb Anindya Mozumdar:
> Hi,
> How can I make a file zero length without deleting the contents of
> the file manually through an editor ?
echo -n "">foo
> Anindya.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 9:00 File size Anindya Mozumdar
2004-08-08 9:16 ` Sascha Retzki
@ 2004-08-08 11:44 ` Roberto Vanto
2004-08-08 11:55 ` Aroop MP
2004-08-08 12:01 ` Sascha Retzki
2004-08-08 12:44 ` Tim Walberg
` (4 subsequent siblings)
6 siblings, 2 replies; 16+ messages in thread
From: Roberto Vanto @ 2004-08-08 11:44 UTC (permalink / raw)
To: linux-admin
Anindya Mozumdar ha scritto:
> Hi,
> How can I make a file zero length without deleting the contents of
> the file manually through an editor ?
> Anindya.
> -
man touch
touch foo
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 11:44 ` Roberto Vanto
@ 2004-08-08 11:55 ` Aroop MP
2004-08-08 12:01 ` Sascha Retzki
1 sibling, 0 replies; 16+ messages in thread
From: Aroop MP @ 2004-08-08 11:55 UTC (permalink / raw)
To: Roberto Vanto, linux-admin
You can make a file zero length by cat > foo and by typing CTRL-D
On Sunday 08 Aug 2004 5:14 pm, Roberto Vanto wrote:
> Anindya Mozumdar ha scritto:
> > Hi,
> > How can I make a file zero length without deleting the contents of
> > the file manually through an editor ?
> > Anindya.
> > -
>
> man touch
>
> touch foo
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Aroop M.P
Bobcares Support Team
---------------------------------------------------
"NO MATTER WHERE YOU ARE IN THE WORLD,IF YOU HAVE DECIDED TO DO SOMETHING
DEEP FROM YOUR HEART YOU CAN DO IT. IT HAS ALWAYS BEEN THE THOUGHT THAT
MATTERS... "
---------------------------------------------------
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 11:44 ` Roberto Vanto
2004-08-08 11:55 ` Aroop MP
@ 2004-08-08 12:01 ` Sascha Retzki
2004-08-08 13:10 ` Aroop MP
1 sibling, 1 reply; 16+ messages in thread
From: Sascha Retzki @ 2004-08-08 12:01 UTC (permalink / raw)
To: linux-admin
Am So, 2004-08-08 um 13.44 schrieb Roberto Vanto:
> Anindya Mozumdar ha scritto:
> > Hi,
> > How can I make a file zero length without deleting the contents of
> > the file manually through an editor ?
> > Anindya.
> > -
>
> man touch
>
> touch foo
touch changes the timestamp if the file exists. It sounds like the file
already exists. btw, You don't need to delete it through an editor, "rm
foo ; touch foo" would do it, too. ;-)
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 9:00 File size Anindya Mozumdar
2004-08-08 9:16 ` Sascha Retzki
2004-08-08 11:44 ` Roberto Vanto
@ 2004-08-08 12:44 ` Tim Walberg
2004-08-09 8:41 ` Ag. System Administrator
` (3 subsequent siblings)
6 siblings, 0 replies; 16+ messages in thread
From: Tim Walberg @ 2004-08-08 12:44 UTC (permalink / raw)
To: Anindya Mozumdar; +Cc: linux-admin
cp /dev/null somefile
On 08/08/2004 14:30 +0530, Anindya Mozumdar wrote:
>> Hi,
>> How can I make a file zero length without deleting the contents of
>> the file manually through an editor ?
>> Anindya.
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
End of included message
--
+--------------------------+------------------------------+
| Tim Walberg | twalberg@mindspring.com |
| 830 Carriage Dr. | www.mindspring.com/~twalberg |
| Algonquin, IL 60102 | |
+--------------------------+------------------------------+
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 12:01 ` Sascha Retzki
@ 2004-08-08 13:10 ` Aroop MP
2004-08-08 13:20 ` Sascha Retzki
2004-08-08 13:57 ` John Julian
0 siblings, 2 replies; 16+ messages in thread
From: Aroop MP @ 2004-08-08 13:10 UTC (permalink / raw)
To: lantis, linux-admin
How can i attach one file on the top of another file.
Suppose file1 has 10 lines and file2 has 20 lines. I want to attach the 10
lines of file1 to file2 so that the file2 will have 30 lines in total.
On Sunday 08 Aug 2004 5:31 pm, Sascha Retzki wrote:
> Am So, 2004-08-08 um 13.44 schrieb Roberto Vanto:
> > Anindya Mozumdar ha scritto:
> > > Hi,
> > > How can I make a file zero length without deleting the contents of
> > > the file manually through an editor ?
> > > Anindya.
> > > -
> >
> > man touch
> >
> > touch foo
>
> touch changes the timestamp if the file exists. It sounds like the file
> already exists. btw, You don't need to delete it through an editor, "rm
> foo ; touch foo" would do it, too. ;-)
>
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Aroop M.P
Bobcares Support Team
---------------------------------------------------
"NO MATTER WHERE YOU ARE IN THE WORLD,IF YOU HAVE DECIDED TO DO SOMETHING
DEEP FROM YOUR HEART YOU CAN DO IT. IT HAS ALWAYS BEEN THE THOUGHT THAT
MATTERS... "
---------------------------------------------------
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 13:10 ` Aroop MP
@ 2004-08-08 13:20 ` Sascha Retzki
2004-08-08 13:57 ` John Julian
1 sibling, 0 replies; 16+ messages in thread
From: Sascha Retzki @ 2004-08-08 13:20 UTC (permalink / raw)
To: linux-admin
Am So, 2004-08-08 um 15.10 schrieb Aroop MP:
> How can i attach one file on the top of another file.
>
> Suppose file1 has 10 lines and file2 has 20 lines. I want to attach the 10
> lines of file1 to file2 so that the file2 will have 30 lines in total.
>
cat file1 file2 >file3
> On Sunday 08 Aug 2004 5:31 pm, Sascha Retzki wrote:
> > Am So, 2004-08-08 um 13.44 schrieb Roberto Vanto:
> > > Anindya Mozumdar ha scritto:
> > > > Hi,
> > > > How can I make a file zero length without deleting the contents of
> > > > the file manually through an editor ?
> > > > Anindya.
> > > > -
> > >
> > > man touch
> > >
> > > touch foo
> >
> > touch changes the timestamp if the file exists. It sounds like the file
> > already exists. btw, You don't need to delete it through an editor, "rm
> > foo ; touch foo" would do it, too. ;-)
> >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 13:10 ` Aroop MP
2004-08-08 13:20 ` Sascha Retzki
@ 2004-08-08 13:57 ` John Julian
1 sibling, 0 replies; 16+ messages in thread
From: John Julian @ 2004-08-08 13:57 UTC (permalink / raw)
To: Aroop MP; +Cc: lantis, linux-admin
To append file1 to file2 do:
cat file1 >> file2
Simple way to empty a file or make an empty file (bash or
ksh) do:
> file
On Sun, 8 Aug 2004, Aroop MP wrote:
> How can i attach one file on the top of another file.
>
> Suppose file1 has 10 lines and file2 has 20 lines. I want to attach the 10
> lines of file1 to file2 so that the file2 will have 30 lines in total.
>
> On Sunday 08 Aug 2004 5:31 pm, Sascha Retzki wrote:
> > Am So, 2004-08-08 um 13.44 schrieb Roberto Vanto:
> > > Anindya Mozumdar ha scritto:
> > > > Hi,
> > > > How can I make a file zero length without deleting the contents of
> > > > the file manually through an editor ?
> > > > Anindya.
> > > > -
> > >
> > > man touch
> > >
> > > touch foo
> >
> > touch changes the timestamp if the file exists. It sounds like the file
> > already exists. btw, You don't need to delete it through an editor, "rm
> > foo ; touch foo" would do it, too. ;-)
> >
--
John Julian
Computer Geek
cell: 248-787-2221
pager: 800-621-4951
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 9:00 File size Anindya Mozumdar
` (2 preceding siblings ...)
2004-08-08 12:44 ` Tim Walberg
@ 2004-08-09 8:41 ` Ag. System Administrator
2004-08-09 14:39 ` Scott Taylor
` (2 subsequent siblings)
6 siblings, 0 replies; 16+ messages in thread
From: Ag. System Administrator @ 2004-08-09 8:41 UTC (permalink / raw)
To: linux-admin
Anindya Mozumdar wrote:
> Hi,
> How can I make a file zero length without deleting the contents of
> the file manually through an editor ?
> Anindya.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
do that from cmd line:
> /file
Adios,
D
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 9:00 File size Anindya Mozumdar
` (3 preceding siblings ...)
2004-08-09 8:41 ` Ag. System Administrator
@ 2004-08-09 14:39 ` Scott Taylor
2004-08-10 6:27 ` Andrew Kelly
2004-08-10 13:47 ` Anindya Mozumdar
6 siblings, 0 replies; 16+ messages in thread
From: Scott Taylor @ 2004-08-09 14:39 UTC (permalink / raw)
To: linux-admin
Anindya Mozumdar said:
> Hi,
> How can I make a file zero length without deleting the contents of
> the file manually through an editor ?
LMAO
If you are trying to get answers to a test or have us do your home work
for you, this is probably not the best place to do it. Here you will find
SysAdmins, not all are schooled and many times you will find answers here
that do not agree with your school book.
For stuff like this you should try linux-newbie@vger.kernel.org
Although, you may find a lot of bored SysAdmins here, giving you all kinds
of strange answers (some that are even wrong), this is not the appropriate
place. As funny as it is, people should not give wrong answers, and less
then knowlegdeable SysAdmins should not either.
BTW, "cp /dev/null > myFile" works, but may need to be contested to give
you accurate points on a test. Depending on your shell, probably, a
simple ">myFile" will be the proper response.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 9:00 File size Anindya Mozumdar
` (4 preceding siblings ...)
2004-08-09 14:39 ` Scott Taylor
@ 2004-08-10 6:27 ` Andrew Kelly
2004-08-10 13:47 ` Anindya Mozumdar
6 siblings, 0 replies; 16+ messages in thread
From: Andrew Kelly @ 2004-08-10 6:27 UTC (permalink / raw)
To: Anindya Mozumdar; +Cc: linux-admin@vger.kernel.org
On Sun, 2004-08-08 at 11:00, Anindya Mozumdar wrote:
> Hi,
> How can I make a file zero length without deleting the contents of
> the file manually through an editor ?
One more voice in the crowd...
:>foo
After we've helped you with your homework, do we get to put our hand up
your sweater?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: File size
2004-08-08 9:00 File size Anindya Mozumdar
` (5 preceding siblings ...)
2004-08-10 6:27 ` Andrew Kelly
@ 2004-08-10 13:47 ` Anindya Mozumdar
6 siblings, 0 replies; 16+ messages in thread
From: Anindya Mozumdar @ 2004-08-10 13:47 UTC (permalink / raw)
To: linux-admin
Hi,
Thanks very much for your replies. However, this was not any homework
or assignment. This arose mainly from an argument regarding touch with
a fellow linux user, and since we did not have access to any machine
running linux, the best solution was this mail.
In fact, someone did give a wrong solution with touch, which was
precisely the point of argument. The mail was sent in the form below
so that we can get to know the other unnoticed ways, hoping that someone
mentions touch as a solution.
Anindya.
On Sun, Aug 08, 2004 at 02:30:45PM +0530, Anindya Mozumdar wrote:
> Hi,
> How can I make a file zero length without deleting the contents of
> the file manually through an editor ?
> Anindya.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* ausearch
[not found] <04F7A41038AF32428FFDDACD8E68B7070E9FB2D3F3@ACDSSDMAILSRV01.acd.de.ittind.com>
@ 2009-10-16 22:25 ` Pittigher, Raymond - CS
2009-10-17 16:05 ` ausearch Steve Grubb
0 siblings, 1 reply; 16+ messages in thread
From: Pittigher, Raymond - CS @ 2009-10-16 22:25 UTC (permalink / raw)
To: linux-audit@redhat.com
I see that the -w or --word switch was added to the ausearch but how it it used? The man pages claim:
String based matches must match the whole word.
But I have been trying
ausearch -w failed and variation of that but only get the message
ausearch -if audit.log.3 -w failed
failed is an unsupported option
This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: ausearch
2009-10-16 22:25 ` ausearch Pittigher, Raymond - CS
@ 2009-10-17 16:05 ` Steve Grubb
2010-11-02 12:58 ` file size Ray Pittigher
0 siblings, 1 reply; 16+ messages in thread
From: Steve Grubb @ 2009-10-17 16:05 UTC (permalink / raw)
To: linux-audit; +Cc: Pittigher, Raymond - CS
On Friday 16 October 2009 06:25:42 pm Pittigher, Raymond - CS wrote:
> I see that the -w or --word switch was added to the ausearch but how it it
> used?
It is used in addition to other matching. If you were to try this search:
ausearch --start today -f va
it will match any file that has va anywhere in it - for example /var/run would
match. But if you change it to this:
ausearch --start today -f va -w
now, /var/run would no longer match. It would insist on the whole file path to
be va.
> But I have been trying
>
> ausearch -w failed and variation of that but only get the message
You would just use "ausearch -sv no" to find failed records. Some search
options do not do partial matches. The -w option does not take an argument.
-Steve
^ permalink raw reply [flat|nested] 16+ messages in thread
* file size
2009-10-17 16:05 ` ausearch Steve Grubb
@ 2010-11-02 12:58 ` Ray Pittigher
0 siblings, 0 replies; 16+ messages in thread
From: Ray Pittigher @ 2010-11-02 12:58 UTC (permalink / raw)
To: linux-audit@redhat.com
Is there a file size limit on the audit.log file? The logging seems to
stop at 2147483647 bytes.
This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2010-11-02 12:58 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <04F7A41038AF32428FFDDACD8E68B7070E9FB2D3F3@ACDSSDMAILSRV01.acd.de.ittind.com>
2009-10-16 22:25 ` ausearch Pittigher, Raymond - CS
2009-10-17 16:05 ` ausearch Steve Grubb
2010-11-02 12:58 ` file size Ray Pittigher
2004-08-08 9:00 File size Anindya Mozumdar
2004-08-08 9:16 ` Sascha Retzki
2004-08-08 11:44 ` Roberto Vanto
2004-08-08 11:55 ` Aroop MP
2004-08-08 12:01 ` Sascha Retzki
2004-08-08 13:10 ` Aroop MP
2004-08-08 13:20 ` Sascha Retzki
2004-08-08 13:57 ` John Julian
2004-08-08 12:44 ` Tim Walberg
2004-08-09 8:41 ` Ag. System Administrator
2004-08-09 14:39 ` Scott Taylor
2004-08-10 6:27 ` Andrew Kelly
2004-08-10 13:47 ` Anindya Mozumdar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.