Search Results

Search: Posts Made By: jcdole
14,716
Posted By jcdole
Do you mean that it is useless to try to prune...
Do you mean that it is useless to try to prune some folders after applying a rule based on file rule ( -newer seems to be applied on file ) ?

--- Post updated at 17:30 ---

What i need is :...
14,716
Posted By jcdole
Bash find : another problem with prune
Hello.

I am searching file between dates and try to apply the comments from Chubler_XL in my thread : Linux find command : how to use multiple conditions...
11,263
Posted By jcdole
When comparing binary files, show human readable result?
Hello.


I am comparing two binary file.
The first file is the source file. The second file is a modified version of the first one.
Modification concern uuid value.


Example
first file have...
12,045
Posted By jcdole
The text seen on the internet site. When I said...
The text seen on the internet site.
When I said "seen" that mean what I see ( that mean also for my question that it is not the characters that are really copied by the copy of 'copy and past'...
12,045
Posted By jcdole
Copy and past html text use wrong character set - Firefox
Hello.

The source code is here : WMI query to find memory slot and installed memory on each slot...
6,499
Posted By jcdole
Thank you very much --- Post updated at...
Thank you very much

--- Post updated at 21:14 ---


Thank you
6,499
Posted By jcdole
Extracting substring within string between 2 token within the string
Hello.


First best wishes for everybody.


here is the input file ("$INPUT1") contents :
BASH_FUNC_message_begin_script%%=() { local -a L_ARRAY;
BASH_FUNC_message_debug%%=() { local -a...
3,997
Posted By jcdole
Delete a pattern including any whitespace before it and after it
Hello.

A_LIGNE="cnezJ,V ,FMZ fd,Mok CODKJ,F SOME_WORD fcnQ, VMQKV Q"
A_PATTERN="SOME_WORD"
sed 's/'$A_PATTERN'//g' <<< "$A_LINE"will remove 'SOME_WORD' and give :
"cnezJ,V ,FMZ fd,Mok...
9,097
Posted By jcdole
Create a text file and a pdf file from Linux command results.
Hello.


The task :
Using multiple commands like :
gdisk -l $SOME_DISK >> $SOME_FILEI generate some text file.
For readiness I must insert page break.
When the program is finished I want to...
14,192
Posted By jcdole
Bash find with expression - process all files except the starting-points
Hello.
This command is correct :
find /home/user_install \( \
\( -type d \( -iname "*firefox*" -o -iname ".cache" -o -iname "libreoffice" \
-o -iname "session" -o -wholename...
3,617
Posted By jcdole
Loading associative array from exported function
Hello.
I have an export of an associative array build using declare -p SOME_ARRAY_NAME > SOME_FILE_NAME.txt.
Producing some thing like declare -A SOME_ARRAY_NAME=( [toto]="some_text" ...
1,960
Posted By jcdole
Ok I will read what SHELLOPTS is for. But...
Ok I will read what SHELLOPTS is for.

But For my problem, I have found that there is some syntax error(s) in some function(s) ( found using shellcheck ).
If I run my test script from command...
8,133
Posted By jcdole
Thank you every body for helping
Thank you every body for helping
3,897
Posted By jcdole
My test show that does not work for function as...
My test show that does not work for function as Corona688 just said.


Thank you

--- Post updated at 18:06 ---




That mean that any script I run which need to be started with sudo needs...
1,960
Posted By jcdole
Bash inherits
Hello .
Preamble :
Depending of the opensuse distrib :
Login shell read :

/etc/profile
/etc/profile.local ( for customization )
eventually for specific programms : /etc/profile.d/
...
3,897
Posted By jcdole
Sudo has no access to exported bash function
Hello.
I am running leap 15.1
sudo behavior may differ from other distrib.


I have a file with functions definition

....
function_1 {
echo "Hello world"

}
export -f function_1 This...
8,133
Posted By jcdole
Extract whole word preceding a specific character pattern with first occurence of the pattern
Hello.


Here is a file contents :
declare -Ax NEW_FORCE_IGNORE_ARRAY=([FORCE_IGNORE15]="§" [FORCE_IGNORE17]="§" [FORCE_IGNORE1]="§" [FORCE_IGNORE16]="§" [FORCE_IGNORE11]="§" .....................
5,057
Posted By jcdole
Than k you for your quick posting.3 I...
Than k you for your quick posting.3


I have found this rules when googleing :
if(conditional-expression1)
action1;
else if(conditional-expression2)
action2;
else...
5,057
Posted By jcdole
awk - multiple and nested if-then-else
Hello.


I would like to convert the following piece of code from bash to awk.

Here are bash variables in a bash script.

CUR_ROW_ID and ROW_ID_TO_SEARCH contains a string which represent a...
5,228
Posted By jcdole
Thank you everybody fore helping.
Thank you everybody fore helping.
5,228
Posted By jcdole
OK that works awk '/zypper_local/...
OK that works



awk '/zypper_local/ && /60/ && /'$ZYPPER_LOCAL_REP'/'Does not works :
user_install@ASUS-G75VW-JC:~> zypper lr -d | awk '/zypper_local/ && /60/ && /'$ZYPPER_LOCAL_REP'/'
awk:...
5,228
Posted By jcdole
awk - using variables in pattern which contain full pathname
Hello.


I would like to make this bash command working.
In the following code, the bash variable 'ZYPPER_LOCAL_REP' contain a full pathname like '/path/to/path/somewhere'

The command list all...
5,626
Posted By jcdole
Thank you very much
Thank you very much
5,626
Posted By jcdole
The best I have found is : sed...
The best I have found is :
sed 's/§.*§/§2019_08_25§/ ; s/¨.*¨/¨version:34-1-9¨/ ; s/ɸ.*ɸ/ɸmodif_version:9-7-3ɸ/' "$SOME_FILE"But that does not convert :
#!/bin/bash
# ...
5,626
Posted By jcdole
Contrary to what I wrote yesterday, it doesn't...
Contrary to what I wrote yesterday, it doesn't quite do what I thought.
In fact it delates from the beginning of the line containing /start/ (complete line) until the end of the line...
Showing results 1 to 25 of 213

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