Tagged Questions
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 …
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 …
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.
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. …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
… 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:
…views
prepend to a file one liner shell?
This is probably a complex solution.
I am looking for a simple operator like "> …
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 …
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.
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 …