If the user passes 1 then i need the newest latest file.
If the user passes 2 then i wish to display only the newest - 1 file i.e second latest file.
if the user passes 3 then the third latest file.
Thus if the user passes 3 then the below file should be be printed
if the user passes 4 then the below file should be be printed
@Rudic your suggestion does not help get my desired output. Kindly suggest.
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)
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)
I have a two files containing numbers like below. First one contains one number on each line, the other is a table of numbers, each separated by a space. There are the same number of lines in each file.
I want to take each number in the row of the table and find the difference from the... (12 Replies)
Hi,
I have a menu of around 10 lines with options.
I want to display it in bottom right corner of screen for better display.
I can do it with clear screen. But I don't want to use it, because it will clear the existing text. After one choice from menu is executed, the menu should just place... (3 Replies)
Hi ,
1)i want to display specific line number using tail command.
e.g. display 10 line from end.
Please help...
2)Want to display line 10 to 15 (from end)using tail command) (2 Replies)
This is Input - starts with Storage Group Name and ends with Shareable and the loop continues all I need is Storage group name and Alu numbers in the below output format requested.
Storage Group Name: abcd
Storage Group UID: 00:00:000:00:0:0:0
HBA/SP Pairs:
HBA UID ... (6 Replies)
Hi,
I'm trying to figure out a way to find which line in my file.txt with IP addresses:
192.168.0.1
192.178.0.2
etc...
returns specific result when I execute command affecting all lines.
For example when I run:
for line in `cat file.txt`;
do
snmpget $line
done
it displays the... (5 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
What single command line would you enter to get the following output?
8140 drwxr-xr-x 9 root bin 18 Jan 20... (6 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)
Discussion started by: vivek d r
3 Replies
LEARN ABOUT SUSE
mkdic
MKDIC(1) General Commands Manual MKDIC(1)NAME
mkdic - Tool for creating a user dictionary
SYNOPSIS
mkdic [{-cs|-cannaserver} canna-server] [-s] [- | -l local-file] remote-dic
DESCRIPTION
mkdic creates user dictionary named remote-dic in the user dictionary directory of the remote host, on which cannaserver(1M) is in opera-
tion. Dictionary file name remote-dic is assigned to this file at this time.
If the - and -l option isn't specified, mkdic creates an empty dictionary.
If the - option is specified, the standard input will be used as the dictionary file. If the -l option is specified, local-file will be
used as the dictionary file.
If the user dictionary directory does not exist, it will be created.
Dictionary directory file -- dics.dir -- is rewritten automatically after the registering. The registered dictionary can thus be used by
writing the dictionary name into the customize file.
OPTIONS -cs canna-server (or -cannaserver canna-server)
Specifies the server machine that contains the dictionary to be created.
-s Indicates that the dictionary to be created is an adjunct dictionary. If this option is omitted, the dictionary will be cre-
ated as an independent-word one.
-l local-file
Registers the input data from local-file.
- The standard input will be used as the dictionary file.
EXAMPLES(1) If you want to creat an empty dictionary file:
% mkdic test(2) If you want to register the input data from the standard input:
% mkdic test -
Registers the input data from the standard input, in the user dictionary directory under dictionary name ``test''. The following line is
then added to dictionary directory file -- dics.dir -- :
user1.t(.mwd) -test-(3) If the dictionary file is specified:
% mkdic test -l test1.t
Registers independent-word dictionary file ``test1.t'' in the remote host's user dictionary directory under dictionary name ``test''. The
following line is then added to dics.dir:
user1.t(.mvd) -test-
user1.t is a dictionary file name generated automatically by the system.
SEE ALSO catdic(1), cannaserver(1M), lsdic(1)MKDIC(1)