Search Results

Search: Posts Made By: aaaaargh
6,369
Posted By aaaaargh
awk '{printf "%s ",$5} ' file* | tr ' ' '\n' |...
awk '{printf "%s ",$5} ' file* | tr ' ' '\n' | while read a; do read b; echo "$a $b"; done
14,985
Posted By aaaaargh
Good starting point stat --printf "Human...
Good starting point

stat --printf "Human Readable: %A \nGroup name of owner %G \n" file
6,369
Posted By aaaaargh
No paste needed.
No paste needed.
6,369
Posted By aaaaargh
if you want the columns side by side you can do ...
if you want the columns side by side you can do
awk '{printf "%s\t",$0} END '{print}'' file*
12,580
Posted By aaaaargh
Be very careful when you run this. First...
Be very careful when you run this.

First identify what the directories are:

find / -name "??????????" -type d -empty -ls


Then delete (be careful, I am warning you)

find / -name...
8,353
Posted By aaaaargh
IMO, its really a bad idea to parse HTML files...
IMO, its really a bad idea to parse HTML files using SED/AWK

Your best bet is to use PERL,

HTML::TreeBuilder - Parser that builds a HTML syntax tree - search.cpan.org...
1,612
Posted By aaaaargh
This is not a command. Its probally in your...
This is not a command. Its probally in your /etc/sudoers file.

Sudoers Manual (http://www.gratisoft.us/sudo/man/sudoers.html#examples)
12,580
Posted By aaaaargh
Define "system directories". Also, doing a find...
Define "system directories". Also, doing a find of "/" will take a very long time and you may not have permissions depending on your access.

You may wait to use

-fstype ext3

to avoid...
2,583
Posted By aaaaargh
for starters its not a good idea to parse your ps...
for starters its not a good idea to parse your ps output.

Try using ps -eo pid
3,102
Posted By aaaaargh
run it on a faster box? What exactly is the...
run it on a faster box?

What exactly is the script doing?
16,125
Posted By aaaaargh
awk '{if (NF==3) { printf...
awk '{if (NF==3) { printf "|%s\t|%s\t|%s|\n",$1,$2,$3}}' file
6,369
Posted By aaaaargh
not tested but I would would awk '{print...
not tested but I would would

awk '{print $5}' file* >> result.txt


What is the "desired" format?
2,662
Posted By aaaaargh
Please be more specific. Your example makes no...
Please be more specific. Your example makes no sense
1,921
Posted By aaaaargh
awk 'BEGIN {m=0} {a[NR]=$0;if (m<length($0)){...
awk 'BEGIN {m=0} {a[NR]=$0;if (m<length($0)){ m=length($0)}} END { for (x in a) { if (length(a[x])<m) { for (i=length(a[x]);i<m;i++) { printf "0" } } print a[x] }} ' file
14,658
Posted By aaaaargh
To compare folders I recommend you use rsync ...
To compare folders I recommend you use rsync

rsync -n -avxl src/ tgt/

This will show you how src differers from tgt
Is this what you are looking for?
1,633
Posted By aaaaargh
Here is mine, ugly but should do the trick ...
Here is mine, ugly but should do the trick

(not tested)


awk 'BEGIN{i=0}
{ content[NR]=$0; if (($0=="")) {b[i]=NR;i++} j++;}
END
{
for (x=0;x<=b[0];x++)
{print content[x] >...
3,819
Posted By aaaaargh
something like this, maybe? awk '{print...
something like this, maybe?

awk '{print "mkdir "$1}' file | sh
2,816
Posted By aaaaargh
paste a sample output for your question....
paste a sample output for your question....
2,892
Posted By aaaaargh
Something like this? filename a.awk ...
Something like this?

filename a.awk

BEGIN {
RS=""
}
{
for (i=1;i<=NF;i++)
{
array[i]=$i
}
}
END {
for (k=1;k<=i-1;k++)
{
...
1,999
Posted By aaaaargh
Something like this, maybe? Filename:blk.awk ...
Something like this, maybe?
Filename:blk.awk

BEGIN {
RS=""
}
{
for(i=1; i <= NF; i++)
{
array[i]=$i
}

...
Showing results 1 to 20 of 20

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