So I just want to make sure I follow this. You converted the numbering of lines to base 44 (that's what the NR % 44 was, I gather) so that you could delete any line with a ones place of 9 or under? What's the 0 {next} 1 bit, if you don't mind my asking?
Also, thanks very much for your help!
Is there an easy way to delete the first so many lines in a log file?
like I have a log file that has 10000 lines, i want to just get rid of the first 9000. (2 Replies)
Hi
I have a file & always I need to remove or delete last 2 lines from that file. So in a file if I have 10 lines then it should return me first 8 lines.
Can someone help me? (4 Replies)
HI
I'm looking to delete lines ending with .tk from below data file
---------
abc.tk
mgm.tk
dtk
mgmstk
------
I have written below code
----
sed '/.tk *$/d' dat_file.txt > temp.txt
----
But its deleting all the lines ending with tk. I need to delete only the lines ending .tk
my... (5 Replies)
We have a server that logs transactions to a file. I want to write a script that will delete the first 50 lines of the file daily without renameing the file or moving the file. (8 Replies)
Good morning!!! Im a newbie with shell programing and i was wondering if there is a way to delete certain new lines from a file, here is an example of my current file:
>seq_0
GTGAGATTGCTAATGAGCTGCTTTTAGGGGGCGTGTTGTGCTTGCTTTCC
AACTTTTCTAGATTGATTCTACGCTGCCTCCAGCAGCCACCCCTCCCATC... (11 Replies)
Hi,
I have a big (2.7 GB) text file. Each lines has '|' saperator to saperate each columns.
I want to delete those lines which has text like '|0|0|0|0|0'
I tried:
sed '/|0|0|0|0|0/d' test.txt
Unfortunately, it scans the file but does nothing.
file content sample:... (4 Replies)
Hello,
I have a file filled with dates, such as:
04-08-2011 message
04-08-2011 message
03-08-2011 message
01-08-2011 message
31-07-2011 message
24-07-2011 message
15-07-2011 message
13-12-2008 message
26-11-2007 message
And I want to delete those lines whose date is older than 10... (5 Replies)
Hi Guys ,
I have two files say a1 and a2 having following contents
a1
dag
wfd
a2
dag
wfd
chire
hcm
I want to delete only the lines in a2 which are in a1 and final output of a2 should be
a2
chire
hcm (6 Replies)
Discussion started by: Pradeep_1990
6 Replies
LEARN ABOUT SUSE
args
args(1) GNU Telephony args(1)NAME
args - manipulate and output command arguments.
SYNOPSIS
args [options] args...
DESCRIPTION
This command is used to manipulate and echo command line arguments to standard out. This can include adding quotes around each argument
passed or a separator, or to output each argument on a separate line. The program source also offers a basic example of how to use shell
argument parsing and localization in ucommon.
OPTIONS --delim=char
Set a deliminator character, such as ',', to use between each argument when outputing arguments.
--directory
If argument is a directory, list directory contents as arguments.
--follow
If argument is a directory and a symlink, follow symlinks recursively.
--lines
Output each argument on a separate line.
--quote=char|pair
Set a quote or special leading and trailing pair of characters to surround each argument with when output. A typical use might be
--quote=() to surround arguments in parenthesis.
--recursive
If argument is a directory, recursively scan directory and any subdirectory contents as arguments.
--reverse
Reverse order of arguments.
--help Outputs help screen for the user.
AUTHOR
args was written by David Sugar <dyfet@gnutelephony.org>.
REPORTING BUGS
Report bugs to bug-commoncpp@gnu.org.
COPYRIGHT
Copyright (C) 2009 David Sugar, Tycho Softworks.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
GNU uCommon January 2010 args(1)