2
votes
2answers
139 views

cat “input file is output file” while trying to combine multiple files into one

The plan was to collect all source lines of Java into one file, recursively: $ find . -name '*.java' | xargs cat >> all.java But there was an error: cat: ./all.java: input file is output ...
1
vote
2answers
688 views

What about this Forfiles command syntax is wrong?

I was attempting to issue the following FORFILES command, and I recieved an error that distressed me (listed after the command). C:\Windows\system32>FORFILES /P %WINDIR%\servicing\Packages ...
2
votes
2answers
144 views

How does calling a program in Windows XP from “Run…” with a colon argument work?

I noticed that a certain program works in a special way when sending an argument. The only way to send an argument is by clicking "Start -> Run..." and typing: [programname]:[argument] for e.g ...
3
votes
3answers
498 views

Launch VIM and show, or hide, row numbers

Background Control whether row numbers are displayed after vim starts (in a non-interactive mode). Problem A shell script contains the following code: echo Converting $1 to $1.html... NUMBERS="-c ...
0
votes
1answer
476 views

What's the syntax to add a calendar reminder from Google Command Line?

I've been using googlecl successfully to add events to my calendar. Things like: google calendar add "call Paul tomorrow at 8:30am" work great, and add the appropriate event t the right time. ...
5
votes
4answers
4k views

Explanation of command to uppercase the first letter of a filename

I'm trying to learn to rename files with the command line, and after browsing around a lot of pages I finally found a command that uppercases the first letter of a file, but the problem is that I want ...
4
votes
3answers
2k views

how do I use tar -C on Snow Leopard when creating an archive?

The man page states -C directory In c and r mode, this changes the directory before adding the following files. However, tar does not change to the directory I specify, but instead reports ...
3
votes
2answers
7k views

How can I sort ls by owner and group?

How can I list directories with ls and sort them by their owner and group?
3
votes
1answer
3k views

How to grep a line start with “*” using grep

How can I use 'grep' to get lines start with '* ' in my file? I tried grep "*" myfile and grep "* " myfile but returns all the lines of my file.
8
votes
3answers
3k views

How to read Unix usage

I did some searching, but I cannot find documentation on how Unix usage works. I know something (mostly through trial and error) but, for example, how do I know that /usr/bin/ls ...
2
votes
1answer
1k views

Automating Disk Cleanup on Windows using commandline

I am trying to run Disk Cleanup in the Command Prompt (and through a C# program) and so I went through all the available options from this link: http://support.microsoft.com/kb/315246 Whilst I ...
8
votes
5answers
3k views

How is \$ being interpreted by grep?

When I write $ grep \$ then whatever I type on terminal, is matched and printed on terminal. How is \$ being interpreted?