Questions tagged as 'shell'

1
answer

In AWK how to do output of 18 lines [closed]

I have to do an output of 18 lines: ls -lh ~cis140u/lab6examples |awk '{print" \t",$8, $6,-$7,"\t",$NF , $5, "\t",$10; } ' in order of DATE ARCHIVE SIZE Is it okay?     
asked by 06.08.2017 / 17:03
1
answer

Comment a line in a file.log separated by blank spaces? [duplicate]

file.log if $programname contains 'file_apps_' then @233.33.3.3 $ModLoad fdsf #File APPS - j_d action(type="dfsfdsf") $InputFileName /logs/.log $InputFileTag ja_dd_d $InputFileStateFile jas_dd_d $InputFileSeverity info $InputFileFacility...
asked by 20.12.2018 / 21:07
1
answer

How to work with decimals in linux shell, conditional use if & else

I'm working on a code that allows to know the classification of a student through a note entered in shell linux, my problem is that I could not adjust the value to decimal places, if I use the "," the program runs but does not work good. I at...
asked by 01.10.2018 / 20:01
2
answers

Difference between these two commands of the Linux terminal?

Hi friends, I'm a bit new to the Linux terminal, I'm using Ubuntu and seeing one of the commands in this specific cd. I'm seeing that you have two ways to enter a directory asi: cd /usr/bin and so: cd ./bin What would be the benefit...
asked by 20.06.2017 / 18:18
2
answers

change terminal name mac

I wanted to know if there is a way to remove all the name that appears in the terminal, it uses a lot of space. I have it like this: and I would like to see something like this.     
asked by 10.12.2016 / 17:30
1
answer

Save .csv in variable

I try to save a .csv file in a variable like this: variable='archivo.csv' but it gives me an error: file.csv: Command not found     
asked by 24.10.2018 / 13:17
1
answer

Bash autocomplete

I am creating an interactive menu in Bash where I want to be writing a text entry, at the same time read a file.txt and with that information show us options to autocomplete our input, something like the autocomplete in jquery. The question is:...
asked by 03.09.2018 / 18:03
1
answer

HTML tables in SHELL unix

I want to send an email with an HTML table which I believe in a Shell, but when I send it, it does not generate the table, it only generates the header and the data. I leave the code of the Shell: ( echo "To: [email protected]" echo "Subject: M...
asked by 09.08.2018 / 17:05
1
answer

Shell Script: making this exit [closed]

if grep ttt $i > /dev/null 2> /dev/null     
asked by 03.05.2018 / 15:29
1
answer

How to create a user that does not have the possibility to delete the Mongo DB?

I have created this type of user but with it I can do everything When doing:    what I do. use database db.logout() -----------> para asegurarme que no este logeado con ningun usuario db.auth("restrictedUser", "password") -----------...
asked by 17.04.2018 / 02:06