Tagged Questions
0
votes
1answer
87 views
Change Directory and List Files [duplicate]
Possible Duplicate:
Make cd automatically ls
I think that it would be very useful to have a unix utility that combines 'cd' and 'ls' so that when you change your directory, it automatically ...
5
votes
3answers
1k views
cp or rsync, is cp really worth it?
I hope this does not count as a question without a real answer, as I can't seem to find a good reason to use cp(1) over rsync(1) in virtually all circumstances. Should one typically favour rsync over ...
2
votes
4answers
142 views
xsel < /tmp/xselection not working in script
I'm trying to use the following script:
#!/usr/bin/env bash
# Edit xselection in gvim
xsel > /tmp/xselection
gvim /tmp/xselection
xsel < /tmp/xselection
But the final line does not seem to be ...
2
votes
1answer
312 views
How to plot the output of a command
How can I plot the output of this command line with GNUPlot? What should the diagram script look like?
I want a histogram.
wget -O - -o /dev/null http://www.stackoverflow.com/ |
cat | cat | sed ...
3
votes
2answers
131 views
ln gives different results when run multiple times
I have this simple script to use with seventh sense (it's a lone wolf gamebook reader/player):
#!/bin/bash
GAME_PATH=$(dirname "$(readlink -f "$0")")
SEVENTH_SENSE_PATH=$(echo ...
1
vote
1answer
278 views
Good “progress bar” about md5sum checking progress?
I'm using this right now:
time md5sum -c *.txt | pv | grep -v ': OK$'
but aren't there any smart solutions that can list that how many files haven't been checked? I mean I have many md5sum's in ...
11
votes
4answers
2k views
Usage of dash (-) in place of a filename
For a command, if using - as an argument in place of a file name will mean STDIN or STDOUT.
But in this example, it creates a file with the name -:
echo hello > -
How can I make - in this ...
4
votes
3answers
366 views
General specification for command line interface
I was wondering where I can find and
learn some general idea about the
command line interface used in Linux
and bash?
As to now, I have found pieces of
such information only from
experience, such as
...
26
votes
4answers
2k views
What is the difference between a builtin command and one that is not?
Is there any intrinsic difference between a builtin command and another command which can nominally do the same thing?
eg. Do builtins get "special" treatement? ... is there less overhead running ...
30
votes
2answers
6k views
What does “--” (double-dash) mean?
I have seen -- used in the compgen command.
For example:
compgen -W "foo bar baz" -- b
What is the meaning of the --.
9
votes
3answers
404 views
Doing two things with output from a command
I have a program texcount that outputs the number of words in my LaTeX document. I can also pipe the output of this to sed to make the newlines TeX linebreaks and write this to a file which I can then ...
13
votes
9answers
6k views
Tool in UNIX to subtract dates
Is there any tool in Solaris UNIX (so no GNU tool available) to subtract dates? I know that in Linux we have gawk that can subtract one date from another. But in Solaris the maximum we have is nawk ...
