Search Results

Search: Posts Made By: RudiC
152
Posted By RudiC
Or, "Advanced search" ing for "missing" "value"...
Or, "Advanced search" ing for "missing" "value" gives


https://www.unix.com/shell-programming-and-scripting/279413-fill-missing-values.html?highlight=missing+values...
152
Posted By RudiC
On top of what RavinderSingh13 already said,...
On top of what RavinderSingh13 already said, similar problems have been solved umpteen times in these fora. Try to find (and adapt?) one or several...
5
sed
132
Posted By RudiC
Any attempts / ideas / thoughts from your side? ...
Any attempts / ideas / thoughts from your side?


Hint from man sed:
280
Posted By RudiC
You're close. How could you accomplish the other...
You're close. How could you accomplish the other half of the task?


And, pls use code tags.
280
Posted By RudiC
Any attempts / ideas / thoughts from your side?...
Any attempts / ideas / thoughts from your side? Any preferences?


Is that homework / classwork?
191
Posted By RudiC
Didn't you want "the {start time, mem_before} in...
Didn't you want "the {start time, mem_before} in one column, and {end time, mem_after} in another column" ?


Try also this slightly condensed version (that assumes there is a start time when...
191
Posted By RudiC
Try posting runnable, syntax error free code only...
Try posting runnable, syntax error free code only so people can concentrate on the logical problems. I won't comment on the obvious errors in your incomplete code snippet above. How about
awk '...
588
Posted By RudiC
Now, it doesn't break, that is. The ssh just eats...
Now, it doesn't break, that is. The ssh just eats up all stdin which is redirected from .outlist.tmp, and the while read cleanly finishes on end-of-file. Did you consider using another file...
428
Posted By RudiC
No, it's not. How do you expect people to bug...
No, it's not. How do you expect people to bug hunt if they don't see what is actually going wrong? Show the directory listing from your target system. If that is confidential, build a dummy one but...
428
Posted By RudiC
Show your actual directory structure EXPLICITLY,...
Show your actual directory structure EXPLICITLY, like
tree -d
.
├── D1
│ ├── D2
│ │ └── L1
│ ├── D3
│ │ └── L2
│ └── D4
│ ├── L1
│ ├── L2
│ └── L3
└── test...
588
Posted By RudiC
Does lshwres interact directly with the terminal?...
Does lshwres interact directly with the terminal? Are there any options to disable this? I could sort of replicate the situation with stty:
ssh -n -t user@remotehost "hostname; stty"...
428
Posted By RudiC
Pls post your (representative, full breadth)...
Pls post your (representative, full breadth) directory structure down to "folder". Which you should do anyhow, always.
428
Posted By RudiC
Come on - cding to * cannot by all means happen...
Come on - cding to * cannot by all means happen unless each * expands to exactly one directory.
588
Posted By RudiC
Your code snippet does not look like what you...
Your code snippet does not look like what you showed in post #1. Where do you get the error? Is it issued by ssh or by lshwres? Try changing -T to -t.


Split the problematic code into smaller...
255
Posted By RudiC
Added file "servers.txt" to read from.
Try
while read server
do sshpass -p 'abc' ssh -o StrictHostKeyChecking=no -q -t xyz@${server} awk -v"HN=$(hostname)" '/[mM]inimum/ {next} /PASS_MIN_LEN/{print HN, $2}' /etc/login.defs`
...
255
Posted By RudiC
Tryfind . -printf "%T@ %Tc %p\n" | sort -r | cut...
Tryfind . -printf "%T@ %Tc %p\n" | sort -r | cut -d" " -f2-
330
Posted By RudiC
The first posistional parameter is NOT an array,...
The first posistional parameter is NOT an array, and thus can't be indexed.


How about
verifyfiles() { for sym ; do echo "Array in FUNCTION Contains:"; echo "$sym"; done; }
.
.
....
255
Posted By RudiC
How far would find . -printf "%T@ %p\n" | sort...
How far would
find . -printf "%T@ %p\n" | sort -r
get you?
225
Posted By RudiC
How about echo "${1//\\\\n/$'\n'}" | awk '$5...
How about
echo "${1//\\\\n/$'\n'}" | awk '$5 {print "File is:", $5}'
File is: /app/scripts/testingscr5.scr
File is: /app/mrt/testingscr6.mrt
File is: /app/exe/testingscr9.exe
File is:...
363
Posted By RudiC
Try also (your code simplified): awk...
Try also (your code simplified):
awk 'length==80 {ORS=""} 1; {ORS=RS}' fileor
awk '{ORS=length==80?"":RS} 1' file

Your first attempt doesn't work as expected as ORS is never reset to RS, as...
297
Posted By RudiC
How about printf "Match Found for File: %s\n"...
How about
printf "Match Found for File: %s\n" /app/scripts/*$1*
308
Posted By RudiC
Or provide a default value in case harr[$j] is...
Or provide a default value in case harr[$j] is empty / unset:
if [ ${harr1[$j]:-1} -eq $search ]
then break
fi
454
Posted By RudiC
Shells don't expand variables within single...
Shells don't expand variables within single quotes.
342
Posted By RudiC
Any attempts / ideas / thoughts from your side? ...
Any attempts / ideas / thoughts from your side?
Your OS and shell?
405
Posted By RudiC
Given your uniq provides all the options shown,...
Given your uniq provides all the options shown, try
sort -k4,4 file | uniq -D -f3 -w5
40993876 4531 724 10154 Strep A
40993878 4533 724 10154 Strep B
40991764 2419 ...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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