I'm wondering if there is a similar program to 'head' that accepts gz
files. (just as zgrep to grep)
I have the following file head.txt. I'm wondering what the correct way
is to change the tab to a backslash and the character 't'.
$ tr "\t" "\\t"
alias dir='ls --color=auto --format=vertical'
The above alias doesn't distinguish the color for a symbol link
pointing to a file and a symbol link pointing to a dir. I'm wondering
if there is a way to configure it to do so?
On Wed, Dec 30, 2009 at 7:34 PM, Eric Blake wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> According to Peng Yu on 12/30/2009 4:09 PM:
>> alias dir='ls --color=auto --format=vertical'
>>
>> The above alias doesn't distinguish the color
On Wed, Dec 30, 2009 at 8:47 PM, Eric Blake wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> According to Peng Yu on 12/30/2009 7:30 PM:
>> Use dircolors (as in adding the line:
>>
>> eval "`dircolors path/to/preferences`"
>>
>>>
2009/12/30 Pádraig Brady :
> On 31/12/09 02:30, Peng Yu wrote:
>>
>> On Wed, Dec 30, 2009 at 7:34 PM, Eric Blake wrote:
>>>
>>> LINK target
>>
>> I don't want the color of the link the same as the color of the
>> target. I want the color
On Thu, Dec 31, 2009 at 9:31 AM, Chris Jones wrote:
> On Thu, Dec 31, 2009 at 07:28:05AM EST, Eric Blake wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> According to Chris Jones on 12/30/2009 11:26 PM:
>> > But pardon my ignorance, where exactly do you specify "LINK target"?
>>
>>
I don't see an option that sorts ls result by file size. Could
somebody let me know if there is such an option?
Suppose I have directory a and b, the following command will copy the
content of a to b/a, rather than overwrite the directory 'b' by the
directory 'a'. I'm wondering if there is an option to overwrite 'b'?
cp -r a b
'touch' will not make the file size empty if the file is not empty. I
don't not want to use 'rm -f' first then touch because I might
accidentally remove something if I type anything wrong. Could somebody
let me a better way to create an empty file?
I don't see an option to list only symbolic link with ls. Could
somebody let me know if there is such an option?
'ls -l' shows the symbolic link and its target. I could parse the
output. But I'm wondering whether there is a convenient command that
only print the target if it is a symbolic link otherwise print
nothing? Thank you for your help.
I'm wondering if there is any tool that can do almost exact the same
thing as mv, but it can maintain symbolic links.
mv doens't maintain relative symbolic links. For example, I have file
/tmp/A/file1.txt and a symbolic link /tmp/file1.txt that point to
A/file.txt (by the relative path). If I mv /
On Fri, May 7, 2010 at 5:03 PM, Bob Proulx wrote:
> severity 6138 wishlist
> thanks
>
> Peng Yu wrote:
>> I'm wondering if there is any tool that can do almost exact the same
>> thing as mv, but it can maintain symbolic links.
>>
>> mv doens't maintai
On Mon, May 10, 2010 at 4:37 AM, Voelker, Bernhard
wrote:
> Peng Yu wrote:
>
>> I agree with you that this is may not be possible for whole file
>> system. But under the assumptions that symbolic links and their
>> targets are always in a number of directories (user conf
ls -go gives me permission and file sizes. But I only want to show
time and file names. Would you please let me know what command to use?
--
Regards,
Peng
When I use wc -l *.txt, it show the total number of lines at the end.
I don't necessary need this last line. Is there a way to disable it?
--
Regards,
Peng
On Tue, Jun 8, 2010 at 1:02 PM, Greg Wooledge wrote:
> On Tue, Jun 08, 2010 at 12:53:47PM -0500, Peng Yu wrote:
>> I have a program that only accept argument with a give suffix
>>
>> ./program xxx.suffix
>>
>> If I use process substitution, which gives me /dev/fd
Hi,
I don't think that I completely understand what key means. In the
following example, I thought that --key=2 should order the lines by
the 2nd letter in each line without reordering the lines with the same
2nd letter. But it turns out my understanding is not correct. For
example, "u a" was befo
On Thu, Jun 10, 2010 at 11:39 AM, Peng Yu wrote:
> Hi,
>
> I don't think that I completely understand what key means. In the
> following example, I thought that --key=2 should order the lines by
> the 2nd letter in each line without reordering the lines with the same
> 2
Hi,
I need to reorder the fields in a file. But the -f option can not be
used to reorder field 1 and field 2.
Basically, I want the original 1st field as the new 2nd field and the
original 2nd field the first. Is reordering fields possible with cut.
$ cat input.txt
a b c
e f
Hi,
-k option of sort only allow a range of files. But I would like a list
of fields. For example, field 7, field 3 then field 8. Would you
please let me know how to do it?
--
Regards,
Peng
I'm trying to cp -MM to -M. But so far I don't have a way to do it.
Would you please let me know what is the correct way to cp from -MM to
-M?
$ cp -r -- -MM/ -- -M
cp: target `-M' is not a directory
$ ll -go
total 0
drwx-- 2 64 2010-06-11 14:35 -MM
--
Regards,
Peng
Hello,
The modifiers of -k are discussed in the examples in 'info sort'
rather than in the main entry of "-k". I feel that this be improved by
clearly describe each modifier under the main entry of "-k". It is not
very clear to how many modifiers there are.
--
Regards,
Peng
2010/6/17 Pádraig Brady :
> On 17/06/10 03:07, Peng Yu wrote:
>> Hello,
>>
>> The modifiers of -k are discussed in the examples in 'info sort'
>> rather than in the main entry of "-k". I feel that this be improved by
>> clearly describe each mod
On Fri, Jul 2, 2010 at 2:51 PM, Eric Blake wrote:
> [adding bug-coreutils, to create a bug id to track this by]
>
> On 06/15/2010 09:23 PM, Peng Yu wrote:
>> I need to add an additional common suffix to the files splited by
>> split. Right now, I have to use mv to do
Hi,
Suppose I have a file 'a/b/c/d/e/f', I want to copy it to 'target'
with the parent 'd/e'. I.e., the resulted file is 'target/d/e/f'.
I can make a bash script to do so, but I wondering if there is an
existing command or option. Thanks!
--
Regards,
Peng
Hi,
I have the following script. When the number to the right of 'seq' is
large (as 10 in the example), the script will hang. But when the
number is small (say 1000), the script can be finished correctly. I
suspect that the problem is that there is a limit on the buffer size
for fifo. Is it so
28 matches
Mail list logo