I was wondering more: to what point do you call something you type at the prompt "single command line"...
For I dont get how it is possible to display the 2 first lines with the following...
Unless you have find with fancy options we dont know...
Here are variants on ONE line:
Are you sure you understood with what we are to solve (just ls or find?...)?
Thrcky bit is not much /../ but to get / , /./ and /../ together in one pass... It has to do with th inode itself but its friday I am a bit tired... and lack of imagination at the time...
Last edited by vbe; 03-16-2012 at 02:50 PM..
Reason: typos
I have a variable that is outputting a lot of space.
here has been 45 lines returned ...
how can I remove the spaces between the "been and the 45"
CODE:
fil_len=`wc -l < coshb.txt`
if ; then
cat coshb.txt | more
echo " "
echo "There has been ${fil_len} lines... (4 Replies)
are there any basic commands that can display lines 99 - 101 of the /etc/passwd file?
I'm thinking use of head and tail, but I forget what numbers to use and where to put /etc/passwd in the command. (2 Replies)
Dear Friends,
I have my command output which displays on one row and values are now scrollable (vertical) 3 pages. How do i display those output in three column so that i no need to scroll?
Example:
dcadd$cat components
1.Caluculator
2.Diary
...
...
50.Mobile
51.Battery
..
...... (12 Replies)
Hi
I am facing a strange problem
a=03
echo ${a}
the output is 3
But i want to display it is 03
Can you people help me how to display it like 03.
Thanks (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)
lets say I am printing something out
echo "Please enter a valid username"
and its being printed out 5 times, is there any way I can limit to only being displayed ONCE. I tried echo -n but that just makes everything fit on one line.
Right now it keeps saying
Please enter a valid... (5 Replies)
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
I pass a number to my script. Passing "1" below.
./getfile.sh 1
echo "User entered: $1"
ls -ltr *.conf | sed -n '$p'
I wish to use ls -ltr i.e list files in ascending order of time the latest showing at the bottom of the output.
Number 1 should get me the last row of ls -ltr output i.e... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT DEBIAN
restoredirvbe
RESTOREDIRVBE(3) MBK LOGICAL FUNCTIONS RESTOREDIRVBE(3)NAME
restoredirvbe - restore connectors directions from behavioral view
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "mlo.h"
int restoredirvbe(ptfig)
lofig_list *ptfig;
PARAMETER
ptfig Pointer to a lofig_list
DESCRIPTION
The restoredirvbe function read the PORT section of the vhdl behavuoiral view of the figure, restores the externals connectors directions
and order them as indicated in the vbe.
RETURN VALUE
restoredirvbe returns 1 on success, 0 if there is an error while reading the vbe file, -1 if their is no vbe.
ERROR
"*** mbk error *** restoredirvbe : no figure given"
The ptfig parameter is NULL.
"*** mbk error *** restoredirvbe : figure %s have more connectors than vbe"
Number of connetors in vbe and in figure must be identical. If the vbe have more connectors, the getlocon function give an error on
the unknown connector.
"*** mbk error *** restoredirvbe : cannot read port well!"
To restore the connectors directions, the vbe description must have a port well.
"*** mbk error *** restoredirvbe : bit_vect neither to nor downto"
In a port section of a vbe, the bit vector must have indication of the sens of incrementation.
EXAMPLE
#include "mut.h"
#include "mlo.h"
lofig_list * getgoodlofig(figname, mode)
char *figname;
char mode;
{
lofig_list *ptfig;
ptfig = getlofig(figname, mode);
restoredirvbe(ptfig);
return ptfig;
}
SEE ALSO mbk(1), lofig(3), locon(3), getlofig(3),
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 RESTOREDIRVBE(3)