Search Results

Search: Posts Made By: 244an
2,073
Posted By alister
The command substitution and eval and echo are...
The command substitution and eval and echo are unnecessary.
for (($a_start; $a_expr; $a_eval))
...
a_start='n=north'

Regards,
Alister
12,987
Posted By Corona688
To use printf safely, do printf "%s" "mystring" ...
To use printf safely, do printf "%s" "mystring"

Since the first string is a format string, % characters in it will be interpreted as formatting specifiers. %s means 'string'. So %s by itself...
22,684
Posted By alister
The blame for that behavior almost certainly lies...
The blame for that behavior almost certainly lies with your ls implementation. Which ls are you using?

I can reproduce that behavior with GNU ls. I cannot reproduce it with busybox ls. A closer...
46,063
Posted By alister
This is definitely a shell-implementation detail...
This is definitely a shell-implementation detail that boils down to whether the shell is using the libc functions that fallback to /bin/sh or not.

I installed a few shells on someone's Ubuntu...
5,238
Posted By Corona688
You can also grep for characters grep would...
You can also grep for characters grep would mistake for parameters by 'disguising' them inside [].

grep "[-][-]" file

You can use the same trick, changing how a regex looks without changing its...
2,987
Posted By alister
Whether \t is supported or not by sed depends...
Whether \t is supported or not by sed depends only on the sed implementation itself. The shell is irrelevant. The operating system is irrelevant (except as an indication of which sed implementation...
4,640
Posted By methyl
The advantage of the while-read-do-done construct...
The advantage of the while-read-do-done construct is that you can add to the contents of the loop.
For example:

find ./ -type f -name '*Kconfig' -print | while read filename
do
echo...
4,640
Posted By alister
I've got error here: ./script.sh find:...
I've got error here:

./script.sh
find: paths must precede expression: 2.Kconfig
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]

[/QUOTE]...
4,640
Posted By Tribe
With this command you will output the names of...
With this command you will output the names of the files in present dir whose name ends in Kconfig and for each of the found files it will show the entire lines containing both CONFIG_MTD and depend...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 04:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy