Reputation
3,322
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 6 21
Impact
~387k people reached

Mar
22
comment Syntax error unexpected end of file
I have updated my answer. I haven't built any checking though, but that's left as exercise for the student! ;)
Mar
22
revised Syntax error unexpected end of file
update
Mar
22
answered Syntax error unexpected end of file
Mar
20
comment Bug in shell script for printing the tree-like structure of the curent diretcory
Did you know that there is a tree command ? Have you checked it?
Mar
19
comment for loop problem, detect file with size and copy regardless of name
You need an array list. Something like odtList=(*.odt); for f in "${odtList[@]}"; do myfunc "$f"; done would be closer to your solution
Mar
16
answered Searching for most recent file (Display Unique)
Mar
16
comment Network interface issue after upgrading CentOS 6 to 7
It seems that the kernel module / driver for your network card(s) is not loaded or available. Can you show the output of lspci |grep -i ether. Please provide more details like nmcli connection show as well.
Mar
16
comment Network interface issue after upgrading CentOS 6 to 7
Can you run dmesg | grep -i 'enp0s[38]' Also can you do a listing of /etc/sysconfig/network-scripts/
Mar
16
comment Network interface issue after upgrading CentOS 6 to 7
ifconfig is a depricated command and you should avoid using it. Use ip command instead. Also see if NetworkManager is running. Your interfaces might be renamed like enoXX where XX is the number of the PCIe slot on your machine/server.
Mar
16
comment Bash: Echo a variable whose name is the value of another variable
mywiki.wooledge.org/BashFAQ/006 and look for indirect variable reference.
Mar
16
comment Server patching email notification linux script
Don't use .sh extension. Add #!/bin/bash as your shebang. No need for semicolon ; to terminate a line. Definitely use more quotes "$var"
Mar
8
comment Awk, print result
awk 'BEGIN{print (2+2)}' <- This?
Mar
7
comment Trying to understand .bashrc, env, and export
To get a full understanding of which file does what, consider reading: mywiki.wooledge.org/DotFiles
Mar
2
comment How can I use grep to display lines WITHOUT either of two specific strings?
@jordanm was going to suggest the same. This is an answer though and should be put in the right section.
Mar
1
comment /bin/cat: Argument list too long
The short answer is. You are hitting MAX_ARG limit. ls, cat, mv and other commands have this limitations. As the error already tells you, you are providing too many arguments to the cat command in this case. Use getconf -a |grep MAX_ARG to see the MAX_ARG value that applies to your kernel.
Feb
2
comment Find files using shell script
printf there can be replaced with read -p 'Please enter a file name' num3 instead. Also you'd first run the check then command substitute the find as in < <( find ... )
Feb
2
comment Crontab -e @reboot script doesn't start on restart
Since there is nothing special in that start-ethminer.sh file you might just need to run screen -m -d -S eth /usr/bin/ethminer -G -F http://some_pool_address_here >/home/user/start-ethminer.log 2>&1. Later connect to it using screen -r eth.
Feb
2
revised Crontab -e @reboot script doesn't start on restart
code highlighting and text
Feb
2
comment Errno 5 Input/output error when running yum check-update
This means (as its name implies) you have an error with your disk. There is an I/O error.
Jan
31
comment How do I check if an IP-address or a network is contained in other network in Bash?
Have you checked ipcalc ?