Hi All,
file_1.txt contains
aaa bbbb hhhh
vvvvv mmmmm iiiii
What i want is to search for the first coloumn of each line using awk.i.e as below:
awk '/aaa/ {printf(<>)}' file_1.txt
The print part (<>) should contain all the values(or coloumns ) in the particular line(here it... (8 Replies)
hi friends!
i have a script where a execute a veritas command, available_media wich retrieves me a list of tapes .lst
then i execute
cat /tmp/listtapes.lst | grep -v VL |sed '/^$/d'|awk -F, '{print $1, $3, $4, $9}
' > /tmp/media1.lst
but it prints all the columns instead of the four... (3 Replies)
Hello all,
I want to list the file contents of the directory and number them. I am using la and awk to do it now,
#ls |awk '{print NR "." $1}'
1. alpha
2. beta
3. gamma
The problem I have is that some files might also have some spaces in the filenames.
#ls
alpha beta gamma ... (7 Replies)
1 I open pdf file - it has empty borders of space without text
2 I want to print 9 pages to save paper & eyes
3 In Okular i choose print - 9 pages. And I have no option for adjusting text to text (to print without spaces among 9 pages).
What program can you recommend to me for this... (1 Reply)
When I use:
find . -ls | awk 'BEGIN { OFS = ";"} {print $1,$2,$11}'I get a nice result, yet the files with spaces in it show only the first word and all other characters after the blank space are not printed.
e.g. 'file with a blank space'
is printed
file
'file_with a blank space'
is... (7 Replies)
Hi All
I've a file which is similar to the one given below
column1 coulmn2 column3 column4
A B C D
X Y
F G H
I would like to get it in this format
A|B|C|D
||X|Y
F||G|H
Is... (4 Replies)
Hi all,
I want to set 10 set of strings into a variable where:
removing all spaces within each string
change the delimiter from "|" to ","
Currently, I've the below script like this:Table=`ten character strings with spaces in-between and each string with delimiter "|" | tr -d ' ' |... (7 Replies)
I am working on a file with several columns as below
MO_NAME,FAULT_TYPE,CLASS,CODE1,CODE2,CODE3
RXOCF-101,BTS INTERNAL,FAULT CODES CLASS 2A,53,58
RXOCF-101,BTS INTERNAL,FAULT CODES CLASS 2B,24
RXOCF-101,BTS INTERNAL,FAULT CODES CLASS 2A,33
RXOCF-101,BTS INTERNAL,FAULT CODES CLASS 2D,57 ... (12 Replies)
Hi,
I'm trying to copy and paste the sixth column from a bunch of files into a single file having each column pasted in separate columns (and not one after each other in just one column.)
I tried this code but works only partially because it copied and pasted 50 rows of each column... (6 Replies)
Discussion started by: Frastra
6 Replies
LEARN ABOUT CENTOS
amoverview
AMOVERVIEW(8) System Administration Commands AMOVERVIEW(8)NAME
amoverview - display file systems processed by Amanda over time
SYNOPSIS
amoverview [--hostwidth width] [--diskwidth width] [--skipmissed] [--last] [--num0] [--togo0] [--verbose] [--config ] config
DESCRIPTION
Amoverview displays a chart showing hosts and file systems processed by Amanda along with the backup level performed each day.
See the amanda(8) man page for more details about Amanda.
OPTIONS --config config
Use configuration config.
--hostwidth width
Set host field column width to width characters instead of 8.
--diskwidth width
Set disk field column width to width characters instead of 20.
--skipmissed
Compacts the output by only printing stats for the days Amanda actually ran.
--last
Outputs the last status of each disk at the start. Useful for long tapecycles and/or sparse reports.
--num0
Outputs the number of level 0 dumps for each disk.
--togo0
Outputs the number of runs until the last level 0 dump is overwritten.
--verbose
Amoverview can take a long while on large systems. This option reports intermediate steps while it is working.
RESULTS
amoverview is a summary of the output of " amadmin <config> find ". When the last column of amadmin find contains anything other than "OK",
amoverview translates this into "E" for that day.
A number indicates the level of backup and it succeeded. An "E" indicates an error for that day. You get an "E" for all errors, like failed
to connect, datatimeout, computer crashed, etc, but also for failing to write to tape.
You can have an "E" followed by a number if a filesystem ran into end-of-tape once (gives an "E", and later that day, you flush it to a
second tape (a number: the level, indicating success). If the flush failed too, you get a double "EE" for that day.
You can also have a double code if you have two tapes in the changer and Amanda failed to write to tape the first time because it hit end
of tape (resulting in "E0", for a full, "E1" for an incremental etc.) or twice with error ("EE"), and may a successful flush afterwards
giving maybe "EE0". (Only the latest 2 characters are printed).
EXAMPLE
This shows the /home file system on host2 was backed up at level 3 on the 8th, 9th and 10th of December, had a full backup on the 11th, a
level 1 on the 12th and a level 2 on the 13th.
# amoverview
date 12 12 12 12 12 12
host disk 08 09 10 11 12 13
host1 / 0 1 1 1 1 1
host1 /var 0 1 1 1 1 1
host2 / 1 1 1 1 1 0
host2 /home 3 3 3 0 1 2
host2 /opt 1 1 1 1 1 1
host2 /var 1 1 0 1 1 1
SEE ALSO amanda(8), amadmin(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Stefan G. Weichinger <sgw@amanda.org>
Amanda 3.3.3 01/10/2013 AMOVERVIEW(8)