Results 51 - 75 of about 100 results out of about 106275 pages. (0.14 seconds)
- BashFAQ/045 . . . 1 match
- ...iptor and not the lock file? How can we ensure we use something that is not already being used?
For more discussion on these issues, see ProcessManagement.
----
CategoryShell...
- BashFAQ/044 . . . 1 match
- ...nc enters a directory and finds more/less files that it expected, but at least is more info than cp. Rsync progress is good for big transfers with small files.
----
CategoryShell...
- BashFAQ/043 . . . 1 match
- ...on systems which split the {{{crontab}}} manual into two parts, you may have to type {{{man 5 crontab}}} or {{{man -s 5 crontab}}} to read the part you need.''
----
CategoryShell...
- BashFAQ/042 . . . 1 match
- ...nd. If it automatically "daemonizes" itself, you are screwed.
For a much better discussion of these issues, see ProcessManagement or [[BashFAQ/033|FAQ #33]].
----
CategoryShell...
- BashFAQ/040 . . . 1 match
- ...t \
--begin 3 10 --msgbox "Press OK " 5 30
wait
}}}
For an example of creating a progress bar using {{{dialog --gauge}}}, see [[BashFAQ/044|FAQ #44]].
----
CategoryShell...
- BashFAQ/039 . . . 1 match
- ...<<Anchor(faq39)>>
== What are all the dot-files that bash reads? ==
See DotFiles.
----
CategoryShell...
- BashFAQ/037 . . . 1 match
- ...tivity. There is nothing wrong with that, but FAQ answers should proably be be geared more toward production than tinkering around with old gear. -- KazKylheku
----
CategoryShell...
- BashFAQ/035 . . . 1 match
- ...tatement that processes them, and in the help/usage message that documents them.
For other, more complicated ways of option parsing, see ComplexOptionParsing.
----
CategoryShell...
- BashFAQ/034 . . . 1 match
- ... printf '\r%s\n' "$*"
}
until work_done; do
spin
some_work ...
done
endspin
}}}
A similar technique can be used to build [[BashFAQ/044|progress bars]].
----
CategoryShell...
- BashFAQ/033 . . . 1 match
- ...ashFAQ/045|FAQ 45]].
ProcessManagement also covers topics like "I want to divide my batch job into 5 'threads' and run them all in parallel." Please read it.
----
CategoryShell...
- BashFAQ/032 . . . 1 match
- ...log 2>&1
$ cat log
[1] 10316
[1]+ Done sleep 1
}}}
Of course you may opt to redirect to `/dev/null` instead of a file.
----
CategoryShell CategoryExampleCode...
- BashFAQ/031 . . . 1 match
- ...int $x >&2;}1, x ))" ) # Prints 1, 2
( print "$(( $((++x)), ${ x+=1; print $x >&2;}1, x ))" ) # Prints 2, 2 - because expansions are performed first.
}}}
----
CategoryShell...
- BashFAQ/029 . . . 1 match
- ...dev/null) &&
printf '%s\n' "${ll#* -> }"
else
return 1
fi
}
}}}
However, this can fail if a symbolic link contains " -> " in its name.
----
CategoryShell...
- BashFAQ/028 . . . 1 match
- ...ymbolic links affect your ability to know where you are at any given moment, see [[http://doc.cat-v.org/plan_9/4th_edition/papers/lexnames|this Plan 9 paper]].
----
CategoryShell...
- BashFAQ/027 . . . 1 match
- ...f
you run more than one instance of scriptA.
=== Named Pipes ===
Named pipes are a much richer form of IPC. They are described on their
own page: NamedPipes.
----
CategoryShell...
- BashFAQ/026 . . . 1 match
- ...nt the same results every time, you can change `srand(seed);` to `srand();` in the awk program. Awk will then seed its PRNG using the current epoch timestamp.
----
CategoryShell...
- BashFAQ/025 . . . 1 match
- ...on of how to process command line arguments is available in [[BashFAQ/035|FAQ #35]], and another is found at http://www.shelldorado.com/goodcoding/cmdargs.html
----
CategoryShell...
- BashFAQ/024 . . . 1 match
- ..., thereby limiting its usefulness in an interactive shell.
For more related examples of how to read input and break it into words, see [[BashFAQ/001|FAQ #1]].
----
CategoryShell...
- BashFAQ/022 . . . 1 match
- ...olved with integers and no division. If possible, it's usually more efficient to convert your problem to integer arithmetic than to use non-integer arithmetic.
----
CategoryShell...
- BashFAQ/021 . . . 1 match
- ...arch r=$rep awk 'BEGIN {s=ENVIRON["s"]; r=ENVIRON["r"]; l=length(s)} {o=""; while (i=index($0, s)) {o=o substr($0,1,i-1) r; $0=substr($0,i+l)} print o $0}'
}}}
----
CategoryShell...
- BashFAQ/020 . . . 1 match
- ...ion about handling filenames in shell, see
[[http://www.dwheeler.com/essays/filenames-in-shell.html|Filenames and Pathnames in Shell: How to do it Correctly]].
----
CategoryShell...
- BashFAQ/019 . . . 1 match
- ...wk can also be used to produce a more or less equivalent result:
{{{#!highlight bash
awk -v range=10 '{print > FILENAME "." (int((NR -1)/ range)+1)}' file
}}}
----
CategoryShell...
- BashFAQ/018 . . . 1 match
- ...ding the subshells (requires bash 3.1):
{{{#!highlight bash
# Bash 3.1
for i in {1..100}; do
printf -v n %03d $i
wget "$prefix$n.jpg"
sleep 5
done
}}}
----
CategoryShell...
- BashFAQ/017 . . . 1 match
- ...mes after "1", and the next character "0" is not considered. Changing the square brackets to double parentheses {{{(( ))}}} makes the example work as expected.
----
CategoryShell...
- BashFAQ/016 . . . 1 match
- ...The_Final_Cut*)
}}}
By the way: these kind of patterns can be used with the KornShell, too. They don't have to be enabled there, but are the default patterns.
----
CategoryShell...