« first day (567 days earlier)      last day (2486 days later) » 

 
2 hours later…
3:17 AM
@ChrisThompson the slash doesn't have any special meaning in the shell, what are you trying to accomplish?
your question looks like you are on Windows but that shouldn't matter -- just show us what you tried and how it failed
usually the cure is "don't use an alias, use a function"
 
3:38 AM
638
Q: Make a Bash alias that takes a parameter?

HelloI used to use CShell (csh), which lets you make an alias that takes a parameter. The notation was something like alias junk="mv \\!* ~/.Trash" In Bash, this does not seem to work. Given that Bash has a multitude of useful features, I would assume that this one has been implemented but I am won...

 
@Queen k
 
 
2 hours later…
6:22 AM
I have a file from windows (which has \r carriage returns) , on cat it looks \n seperated. What would be the best way to have it as a comm seprated single line
I do cat headers | tr '\r' ',' but commas are having spaces
 
7:23 AM
(that's a useless use of cat, you want tr '\r' ', <headers
but that's an aside)
I don't understand what you mean, if it "looks \n separated" it doesn't have \r\n separators, does it?
can you show an example, just one or two lines, maybe hex dump?
tr -d '\r' <headers | tr '\n' ,
maybe?
or the other way around, remove the \n and replace \r with ,
that will still leave a final comma at the end of the file instead of a final newline
you can fix that up with | sed '$/,/\n/' (assuming your sed understands \n to mean literal newline; that's not universally portable)
 
thanks tripleee , I did it through vim :)
is there a way to lower zoom level of terminal
im using python terminal , and need to see a lot of data inside terminal
 
7:46 AM
@pythonRcpp depends on what you are using, a VT100 is constrained by its hardware dimensions
many terminals have something like ctrl+ to zoom
or ctrl- to zoom out
on a Mac, try with cmd instead of ctrl
 
ohh cool ctrl+- works
 
8:01 AM
@tripleee is that the workstation you get at your work ?
looks like an old Digital serial terminal ... but maybe the CRT has been replaced because the older ones used to be green or even amber
 
that's a vt100, just to illustrate that there are some terminals whose windows cannot be resized
the same would apply to a modern Linux console (though I guess you could hack it to use a smaller font to make room for more text)
 
At my previous job we had several tru64 machines that has a similar serial console but with the green display
we actually had more tru64 machines then serial consoles ... so in case of power ouages there was quite a squable to get the tru64 machines to boot (as most of them would wait for you to type "boot" in the firmware prompt)
 
 
2 hours later…
@Queen k
 
 
3 hours later…
 
3 hours later…
3:28 PM
can you help?
i have this script
#!/bin/bash
cat database_name_list.txt |while read LINE
do
hive -e "use $LINE; show tables">>table_name_list.txt
done
via this script i am able to get all the tables names in file
but i want to add one database nme in output file ith corresponding table name
i tried to print %LINE in file but not prinintg
 
2 messages moved from Python
 
 
1 hour later…
 
4 hours later…

« first day (567 days earlier)      last day (2486 days later) »