Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me.
I have a file say:
abc
def
ccc
ddd
ffff
The output should be:
Instance1=abc
Instance2=def
Instance3=ccc
Instance4=ddd
Instance5=ffff
... (2 Replies)
Hi,
I have a huge file & I want to add a specific text in column. But I want to add this text from a specific line number to a specific line number & another text in to another range of line numbers.
To be more specific: lets say my file has 1000 lines & 4 Columns. I want to add text "Hello"... (2 Replies)
Hi Everybody,
I am trying to write a script that will get some perticuler data from a file and redirect to a file.
My Question is,
I have a Very huge file,In that file I have my required data is started from 25th line and it will ends in 100th line.
I know the line numbers, I need to get all... (9 Replies)
using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
Hi guys ,
I m writing a script to delete a line at particular location.
But i m unable to use variable for specifying line number.
for example.
sed -n '7!p' filename
works fine and deletes 7th line from my file
but
sed -n '$variable!p' filename
gives following error.
sed: -e... (12 Replies)
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Hello everyone,
I don't really know anything about scripting, but I have to manage to make this script, out of necessity.
#!/bin/bash
while read -r line; do #I'm reading from a big wordlist
instructions using $line
done
Is there a way to automatically write the $line number the script... (4 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Dear Specialists,
I have following data
1 1 2
2 2 3
3 3 6
4 3 4
5 4 9
6 5 11
7 6 7
and I would like to obtain data like below
1 1 2
2 2 3
4 3 4
7 6 7 (2 Replies)
Discussion started by: Ryan Kim
2 Replies
LEARN ABOUT DEBIAN
blaze-list
BLAZE-LIST(1) BlazeBlogger Documentation BLAZE-LIST(1)NAME
blaze-list - lists blog posts or pages in the BlazeBlogger repository
SYNOPSIS
blaze-list [-cpqrsCPSV] [-b directory] [-I id] [-a author] [-t title] [-T tag] [-d day] [-m month] [-y year] [-n number]
blaze-list -h|-v
DESCRIPTION
blaze-list lists existing blog posts or pages in the BlazeBlogger repository. Additionally, it can also display basic repository
statistics.
OPTIONS -b directory, --blogdir directory
Allows you to specify a directory in which the BlazeBlogger repository is placed. The default option is a current working directory.
-I id, --id id
Allows you to display a single blog post or a page with the specified id.
-a author, --author author
Allows you to list blog posts or pages by the selected author.
-t title, --title title
Allows you to list blog posts or pages with matching title.
-T tag, --tag tag
Allows you to list blog posts or pages with matching tag.
-d day, --day day
Allows you to list blog posts or pages from the specified day of a month. The value has to be in the "DD" form.
-m month, --month month
Allows you to list blog posts or pages from the specified month. The value has to be in the "MM" form.
-y year, --year year
Allows you to list blog posts or pages from the specified year. The value has to be in the "YYYY" form.
-n number, --number number
Allows you to specify a number of blog posts or pages to be listed.
-p, --page
Tells blaze-list to list pages.
-P, --post
Tells blaze-list to list blog posts. This is the default option.
-S, --stats
Tells blaze-list to display statistics.
-s, --short
Tells blaze-list to display each blog post or page information on a single line.
-r, --reverse
Tells blaze-list to display blog posts or pages in reverse order.
-c, --color
Enables colored output. When supplied, this option overrides the relevant configuration option.
-C, --no-color
Disables colored output. When supplied, this option overrides the relevant configuration option.
-q, --quiet
Disables displaying of unnecessary messages.
-V, --verbose
Enables displaying of all messages. This is the default option.
-h, --help
Displays usage information and exits.
-v, --version
Displays version information and exits.
EXAMPLE USAGE
List all blog post:
~]$ blaze-list
ID: 11 | 2010-07-05 | Jaromir Hradilek
Title: Join #blazeblogger on IRC
Tags: announcement
ID: 10 | 2009-12-16 | Jaromir Hradilek
Title: Debian and Fedora Packages
Tags: announcement
etc.
List all blog post in reverse order:
~]$ blaze-list -r
ID: 1 | 2009-02-10 | Jaromir Hradilek
Title: BlazeBlogger 0.7.0
Tags: release
ID: 2 | 2009-02-11 | Jaromir Hradilek
Title: BlazeBlogger 0.7.1
Tags: release
etc.
List all pages:
~]$ blaze-list -p
ID: 5 | 2009-02-10 | Jaromir Hradilek
Title: Downloads
ID: 4 | 2009-02-10 | Jaromir Hradilek
Title: Themes
etc.
List each blog post on a single line:
~]$ blaze-list -s
ID: 11 | 2010-07-05 | Join #blazeblogger on IRC
ID: 10 | 2009-12-16 | Debian and Fedora Packages
etc.
Display a short version of blog statistics:
~]$ blaze-list -Ss
There is a total number of 11 blog posts and 5 pages in the repository.
SEE ALSO blaze-config(1), blaze-add(1)BUGS
To report a bug or to send a patch, please, add a new issue to the bug tracker at <http://code.google.com/p/blazeblogger/issues/>, or visit
the discussion group at <http://groups.google.com/group/blazeblogger/>.
COPYRIGHT
Copyright (C) 2009-2011 Jaromir Hradilek
This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Version 1.2.0 2012-03-05 BLAZE-LIST(1)