0
votes
1answer
63 views

Colorize ls-output by filetype [duplicate]

Every once in a while I have to list some files (~20-50) in Bash on Linux || Mac. These files are from four different filetypes. ls nand2tetris/myChips/ And16.hdl And16.cmp And16.tst ...
0
votes
2answers
426 views

Capturing the console output

I am running a Hadoop hive query from shell script. This is how I am doing it in my shell script. echo "SELECT COUNT(*) FROM test" | hive I want to capture the output whatever hive command outputs. ...
2
votes
2answers
902 views

How can I log the output of the mv command in Linux?

I'm using the command: mv -v -f sourceDir destDir How can I output the verbose console out to a file?
1
vote
1answer
97 views

Dump output from REPL

I'm writing SML programs, and I'd like a way to quickly see the output from running a program in the REPL without actually running the REPL (to quickly see if a program has syntax errors - I plan to ...
2
votes
1answer
819 views

Different output when redirecting

$ mysql -e 'select a,b from tablefoo' databasename yields +---+---+ | a | b | +---+---+ | 1 | 0 | | 2 | 1 | +---+---+ whereas $ mysql -e 'select a,b from tablefoo' databasename > file ...