Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 94345

Questions about shell scripts, executable files that are interpreted by a shell (bash, zsh, etc.).

0
votes
Set the run level to 1 (single-user / minimal mode) with: init 1ortelinit 1 More info: Red Hat Debian
answered Mar 19 '15 by cremefraiche
0
votes
If this is in bash, the following will print only the uniq words in a stored variable named herpderp: for w in $herpderp; do echo $w ; done | uniq
answered Dec 13 '15 by cremefraiche
0
votes
!/bin/bash list=$(ls -l | awk 'NR > 1 { print $9;}') for fn in list do echo $fn n=`grep -n "$fn" some.txt | awk -F":" '{ print $1;}'` # change this awk -F" " 'NR=='"$n"'{OFS=" "; $(NF+1)="Fou …
answered Apr 21 '15 by cremefraiche
1
vote
It's in set under COLUMNS. echo $COLUMNS or set | grep -i columns in bash.
answered Jul 13 '15 by cremefraiche
1
vote
Let's say you recipes folder in in /home/username/recipes Here is a simple script: #!/bin/bash count=0 dir=/home/username/recipes/ for recipe in $(ls $dir); do if [ $(cat $HOME/recipes/$recipe | …
answered Dec 11 '14 by cremefraiche
0
votes
#!/bin/bash tput setb 3 # if you set these inside the loop, you won't have to mess with color as much later on. tput clear function main_menu # this can be done a better way. slightly in …
answered Feb 23 '15 by cremefraiche
2
votes
I believe what you are trying to accomplish is making sure the user runs a script as root. To do this, you do not want to add it to the script, but instead just change the ownership of the file and t …
answered Dec 11 '14 by cremefraiche
1
vote
#!/system/bin/sh -xv Z=/absolute/path/to/WorkingDir T=320 F=480 # ? I=540 # ? D=dark L=light P=play # ? cd $Z for dir in $Z*/*/; do if [ -d $Z/$T/$D ] && [ ! -f $T$D.zip ]; then zip -0 …
answered Feb 7 '15 by cremefraiche