1
vote
3answers
27
views

A Perl script to check for a file size and add that result in an Excel spreadsheet?

Currently I monitoring a particular file with a simple shell one-liner:

filesize=$(ls -lah somefile |  awk '{print $5}')

I'm aware that Perl has some nice modules …

1
vote
6answers
188
views

C++: how to get fprintf results as a std::string w/o sprintf

I am working with an open-source UNIX tool that is implemented in C++, and I need to change some code to get it to do what I want. I would like to make the smallest possible change in hopes of gett …

1
vote
5answers
83
views

Nix which command in Powershell?

Does anyone know how to ask powershell where something is?
For instance "which notepad" and it returns the directory where the notepad.exe is run from according to the current paths.

1
vote
9answers
113
views

How do I get the unix find command to print out the file size with the file name?

If I issue the find command as follows:

$find . -name *.ear

It prints out:

./dir1/dir2/earFile1.ear ./dir1/dir2/earFile2.ear ./dir1/dir3/earFile1. …
8
votes
4answers
148
views

How can I send the stdout of one process to multiple processes using (preferably unnamed) pipes in Unix (or Windows)?

I'd like to redirect the stdout of process proc1 to two processes proc2 and proc3:

         proc2 -> stdout
       /
 proc1
       \ 
         proc3 -> stdout
0
votes
1answer
32
views

How do I use my pager (more/less) on error output only

I have a program that spits out both standard error and standard out, and I want to run my pager less on the standard error, but ignore standard out. How do I do that?

Update:

5
votes
5answers
122
views

prepend to a file one liner shell?

This is probably a complex solution.

I am looking for a simple operator like "> …

2
votes
7answers
83
views

Is there a list of Unix command line tools and their Windows counterparts?

Or, more specifically, a list of Unix commands that do not have Windows counterparts? Creating them might be an interesting exercise.

I would like this list so that, as an exercise …

4
votes
3answers
72
views

Are there any resources for becoming a Cygwin “power user”?

I've got it configured, but I want more from it...maybe Cygwin isn't the right tool, but I like how it provides a *nix-like environment within Windows.

0
votes
2answers
21
views

Converting scripts from ksh to bash.

I have some ksh scripts which I'd like to convert to run with bash instead.

Are there any useful on-line resources for this?

I'm really looking for a list of differences between the …


1237 next
103050per page