Search Results

Search: Posts Made By: baris35
12,476
Posted By RudiC
That how we "isolate" the relevant numerical (!)...
That how we "isolate" the relevant numerical (!) sort field from the rest of fields that are considered strings. We're lucky here in that sort seems to disregard the .ts extension when extracting /...
12,476
Posted By RudiC
Not sure I correctly understand your request. Are...
Not sure I correctly understand your request. Are we talking of sorting a file, or a directory listing? Did you check for the links at the bottom of this page? Given "media_w1956306127_b2500000" is...
12,476
Posted By Scrutinizer
Hi, try sort -t_ -k1,3 -k4n
Hi, try
sort -t_ -k1,3 -k4n
2,664
Posted By Neo
Google limits mail forwarded though their relays...
Google limits mail forwarded though their relays to avoid and help manage spam.

Maybe you should "get off" gmail and build your own email servers since you have a lot of mail traffic.

That's my...
1,694
Posted By Peasant
Why not check it by creating some files and doing...
Why not check it by creating some files and doing for loop with a simple echo ?
Default order of things should be apparent from the output produced.

As for other requirements, it will have to be...
1,694
Posted By RudiC
It's not the for cycle's feature but the way the...
It's not the for cycle's feature but the way the shell expands the "glob"s using "pattern matching". man bash is your friend:

For any other arrangement of the value list, additional measures...
Forum: Web Development 09-17-2019
9,458
Posted By Neo
Is there an index.php file? Because it is...
Is there an index.php file?

Because it is hard to guess since we cannot see into the directory (because you will not post that information)

So, we will play a guessing game ... I guess :)
...
3,690
Posted By MadeInGermany
Tip: ptree for linux
Please safe the following script as "/usr/local/bin/ptree", and make it executable.
#!/bin/sh
# Solaris style ptree

[ -x /usr/bin/ptree ] && exec /usr/bin/ptree "$@"
...
3,690
Posted By hicksd8
I'm not sure what you're asking here but I think...
I'm not sure what you're asking here but I think it's about how to stop crontab running a job.

If you use the crontab command to create or cancel or modify a schedule then the crontab daemon...
5,909
Posted By MadeInGermany
/var/run/ is supposed to be writable and...
/var/run/ is supposed to be writable and volatile: to be cleaned during system boot, or an in-memory file system (e.g. tmpfs).
The daemon process should create the pidfile, and remove it when it is...
5,909
Posted By Don Cragun
I don't know of any OS that randomly picks the...
I don't know of any OS that randomly picks the next PID to use when creating a new process. But, it is theoretically possible to do it that way.

Most of the systems I have worked on have a...
2,454
Posted By MadeInGermany
Thanks for sharing this. If you know where the...
Thanks for sharing this.
If you know where the crontab file is located - usually under /var/spool/cron/, in your case /mnt/var/spool/cron/ - then you can directly edit it. (That method is not good...
6,225
Posted By nezabudka
GNU extension sed '/^$/Q' file
GNU extension
sed '/^$/Q' file
6,225
Posted By Scrutinizer
To not print the empty line: sed -n '/^$/q;p'...
To not print the empty line:
sed -n '/^$/q;p' file
sed '/^$/,$d' file
awk NR==1 RS= file
awk '!NF{exit}1'
6,225
Posted By Ivo Breeden
sed '/^$/q' filename Meaning: search for a...
sed '/^$/q' filename
Meaning: search for a line containing only begin (^) and end of line ($). Then quit (q).
4,700
Posted By MadeInGermany
#/bin/bash if [ $# -eq 0 ] then echo...
#/bin/bash
if [ $# -eq 0 ]
then
echo "usage:
$0 procnames ..."
exit 1
fi
{
echo "#define PROCESS_COUNT $#"
printf "#define %s\n" "$@"
tail -n +3 "proc_hide.c"
} > hidelib.c
4,700
Posted By RudiC
Not sure what you're after, but a construct like ...
Not sure what you're after, but a construct like

for KW
do echo "#define $KW"
doneinside your start.sh will yield
#define watchdog
#define migration
#define kworker
#define ksoftirqd
...
5,109
Posted By RudiC
Try also $ paste -sd"\t\n" file | sort -nt\"...
Try also
$ paste -sd"\t\n" file | sort -nt\" -k2 | tr $'\t' $'\n'
#INFO id="18 london" logo="http://lx.yy.zz
http://11.22.77
#INFO id="21 michigan" logo="http://mx.yy.zz
http://11.22.55
#INFO...
5,109
Posted By drl
Hi. Noting that in this specific dataset,...
Hi.

Noting that in this specific dataset, the "#" is essentially the record separator, we can add a dummy record at the top, and use some of the features of a flexible alternative sorting code...
5,109
Posted By Chubler_XL
You were very close with your awk, sort, cut...
You were very close with your awk, sort, cut pipeline:

awk -F\" 'NR%2{printf "%s\t%s\t",$2,$0; next }1' mydata |
sort -n | cut -f2- | tr '\t' '\n'
1,274
Posted By RudiC
I don't think that will fly. You seem to use...
I don't think that will fly. You seem to use underscores and spaces in team names inconsistently, don't set the correct OFS variable, and your file2 doesn't have a meaningful $2 in the structure that...
1,396
Posted By nezabudka
awk -F ">|<" ' NR == FNR {tmp=$2;...
awk -F ">|<" '
NR == FNR {tmp=$2; getline; T[$3] = tmp; next
}
{print $0, ($0 in T)?T[$0]:"id=\"\""
}
' 1.xml keywords.txt

--- Post...
1,396
Posted By nezabudka
while read key; do while read line; do ...
while read key; do
while read line; do
if [[ $line =~ $key ]]; then
IFS=\" read a id z
break
fi
...
1,396
Posted By RudiC
How about (be aware there's NO test1 in your data...
How about (be aware there's NO test1 in your data samples)
awk -F"[<>]" '
NR == FNR {T[$0]
next
}
/<id/ {TMP = $2
next
...
1,396
Posted By RudiC
It doesn't print "extra" spaces, but the two...
It doesn't print "extra" spaces, but the two leading spaces in the "id" line, which you do not remove with your sed command. Try again piping through sed -e 's/^ *<id=\"\(.*\)\">/\1/', i.e. include...
Showing results 1 to 25 of 187

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