12-17-2009
what is the o/p of cat file?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi ,
i m having a html file and this file looks like this
<ssl>
<name>PIA</name>
<enabled>true</enabled>
<listen-port>39370</listen-port>
</ssl>
<log>
<name>PIA</name>
</log>
<execute-queue>
<name>weblogic.kernel.Default</name>
... (7 Replies)
Discussion started by: becksram123
7 Replies
2. Shell Programming and Scripting
I've got a semicolon delimited file. I would like to search for fields that match a pattern, and not hardcoded eg "mth".
*th=something
If the delimited field fulfills this condition, eg. mth=value
I would like to print out both key and value for some number comparison.
eg. if value > "12"... (5 Replies)
Discussion started by: alienated
5 Replies
3. Shell Programming and Scripting
Hi,
I want to search for patterns (from a file) in a file and print the line matching the patterns and the line before it.
I have to search for 100s of patterns from a file.
Any help with AWK or Sed.
Thanks! (2 Replies)
Discussion started by: saint2006
2 Replies
4. Shell Programming and Scripting
Hello All,
I have a file which is having below type of data,
Jul 19 2011 | 123456
Jul 19 2011 | 123456
Jul 20 2011 | 123456
Jul 20 2011 | 123456
Here I wanted to grep for date pattern as below, so that it should only grep "Jul 20" OR "Jul ... (9 Replies)
Discussion started by: gr8_usk
9 Replies
5. UNIX for Advanced & Expert Users
Hi,
I need to extract all the content between two strings stored in two variables "startstring" and "endstring"
startstring=hello
enstring=world
#notworking
awk '/$startstring/, $NF ~ /$endstring/ ' file > file2
The above code is not working with variables. It works when actual string... (2 Replies)
Discussion started by: jeanjkj
2 Replies
6. Programming
hi everybody,
I need some help with some programming.
I need to write a file that can search in a text file and read the whole line into a struct.
the struct =
struct Transistor
{
char chType;
char chFabrikant;
float fPrijs;
enum Transistor_Behuizing { empty,TO18, TO39,... (8 Replies)
Discussion started by: metal005
8 Replies
7. Shell Programming and Scripting
Here Is a problem I am facing with awk.
Query --> I want to search for a string in a file and print next 15 lines below the matched string.
1.We do not have GNU grep so cannot use grep -A or grep -B commands.
2. Instead of passing the search pattern as a string to awk. I want the awk to... (4 Replies)
Discussion started by: togotutor
4 Replies
8. Shell Programming and Scripting
Hello Guyz
I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline
ABC
DEF
LMN
EFG
HIJ
LMN
OPQ
In the above text i need to... (8 Replies)
Discussion started by: RickCharles
8 Replies
9. Shell Programming and Scripting
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Discussion started by: swayam123
4 Replies
10. UNIX for Beginners Questions & Answers
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT SUSE
struct_spi_driver
STRUCT
SPI_DRIVER(9) Serial Peripheral Interface (S STRUCT SPI_DRIVER(9)
NAME
struct_spi_driver - Host side "protocol" driver
SYNOPSIS
struct spi_driver {
const struct spi_device_id * id_table;
int (* probe) (struct spi_device *spi);
int (* remove) (struct spi_device *spi);
void (* shutdown) (struct spi_device *spi);
int (* suspend) (struct spi_device *spi, pm_message_t mesg);
int (* resume) (struct spi_device *spi);
struct device_driver driver;
};
MEMBERS
id_table
List of SPI devices supported by this driver
probe
Binds this driver to the spi device. Drivers can verify that the device is actually present, and may need to configure characteristics
(such as bits_per_word) which weren't needed for the initial configuration done during system setup.
remove
Unbinds this driver from the spi device
shutdown
Standard shutdown callback used during system state transitions such as powerdown/halt and kexec
suspend
Standard suspend callback used during system state transitions
resume
Standard resume callback used during system state transitions
driver
SPI device drivers should initialize the name and owner field of this structure.
DESCRIPTION
This represents the kind of device driver that uses SPI messages to interact with the hardware at the other end of a SPI link. It's called
a "protocol" driver because it works through messages rather than talking directly to SPI hardware (which is what the underlying SPI
controller driver does to pass those messages). These protocols are defined in the specification for the device(s) supported by the driver.
As a rule, those device protocols represent the lowest level interface supported by a driver, and it will support upper level interfaces
too. Examples of such upper levels include frameworks like MTD, networking, MMC, RTC, filesystem character device nodes, and hardware
monitoring.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT SPI_DRIVER(9)