Search Results

Search: Posts Made By: da1
14,259
Posted By sea
You're welcome. It's shorter and i'm...
You're welcome.



It's shorter and i'm lazy.
Also it only 'contains' 1 task per situation, so this is enough.
However, if there are more lines to be made for each situation, i'd go with a...
Forum: Programming 09-05-2019
11,348
Posted By balajesuri
Minor edit
1. Read the file "SHA256" line by line in a loop. (for line in filehandle)

2. Tokenise each line as you read - the result will be stored in a list (hint: split after you strip)

3. The last item...
802
Posted By RudiC
man bash:
man bash:
3,001
Posted By MadeInGermany
Variables in command arguments should be in...
Variables in command arguments should be in "quotes":
echo "$JSON" | jq ...
Not only that it escapes the shell expansions, it also retains the multi-line structure.
(Unless you NEED everything in...
877
Posted By MadeInGermany
To construct variables from nother variables like...
To construct variables from nother variables like
SUCC_CMD2="$SUCC_CMD $TAG $VALUE arg4"
FAIL_CMD2="${SUCC_CMD2//arg4/arg5}"can go awfully wrong in some cases. Imaging $TAG or $VALUE contain...
Showing results 1 to 5 of 5

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