With regards to your sed statement:
In this case the sed statement will regard the input files as a concatenated input stream, so if you print line 2 for example it will only be line 2 of the first file, because if the files are 100 lines long for example, the second line in file 2 would be line 102 to sed...
These 2 Users Gave Thanks to Scrutinizer For This Post:
I want to combine 2 conditional statements by using -o in bash, but it won't work.
if ; then
echo "The number needs to be between 0 and $nr"
fi
Each time i execute the file it says:
./selectCitaat: line 10: syntax error near unexpected token `$1' (3 Replies)
Hi,
I need to escape slashes in my text, so I use this line:
search_string=`echo $var | sed 's@/@\\\/@g'`I expect that to replace a slash with a backslash followed by a slash. That works nicely, but it has a problematic side-effect. If there are two spaces in the var it replaces them with... (3 Replies)
I have the following bash script and it is not accepting the lines
"--"|"--""-")
"--""-"")
while
do
echo "Current Argument is ${1}"
case "$1" in
"--"|"--""-")
echo "Argument is ${1}"
shift # Skip ahead one to the next argument.
... (1 Reply)
Hi I need a script with an if statement that goes.
I need it to search through all files within a directory with the extension .test if it finds the string '71502FSC1206' then do
sed 's/71502FSC1206/\n&/g' > send.test
If it finds the string '715MCH' or '715JAC' then I need it to move the... (1 Reply)
Hey guys,
Currently trying to write a wee script that runs only when logged in as one of two users. The rest of the script is working fine, but no matter what user I try to run it as, it always fails! This is the puzzling part:if ]; then
echo "Run script as admin "
exit 1
else... (6 Replies)
Hi There,
I am trying to load data from a csv file into a DB during our DB migration phase. I am successfully able export all data into a .csv file but those have to rewritten in terms insert statement which will allow for further population of same data in different DB
My exiting csv record... (6 Replies)
Hi Gurus,
I have the below BASH code which does not works for upper case alphabets except Z (upper case Z).
What may be the reason. Also escape sequences like \n, \t, \b, \033(1m \033(0m (For bold letter) are not working.
case $var in
)
echo "Lower case alphabet"
;;
... (7 Replies)
I have the following code in bash, however "set red frmt" is not displayed.
echo "iarg_rd = $iarg_rd"
iarg_rd="2"
if ; then
echo "Hello World"
fi
if ; then
frmt="${gap}${!frmt_titl_yl}"
elif ; then
frmt="${gap}${!frmt_titl_bk}"
elif ; then
echo... (2 Replies)
Hi all,
i need a equivalent for the statement i run in bash, so it would also run in other shells. Specially i need it for ksh to run on AIX.
Here the statements:
exec > >(tee -a $log)
exec 2> >(tee -a $log >&2)
Thanks. (5 Replies)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies
LEARN ABOUT LINUX
lpbb
LPBB(4) BSD Kernel Interfaces Manual LPBB(4)NAME
lpbb -- parallel port I2C bit-banging interface
SYNOPSIS
device iicbus
device iicbb
device lpbb
device iic
DESCRIPTION
The lpbb driver supports the Philips official I2C parallel bit-banging interface.
LS05 pin 14 (Vcc) o -------
| | |
+--+--+---------------------+--+--+------------+------+-o 1 |
| | | | | | ===.1uF | +5V |
-------- [R][R][R] 3x10K 3x10K [R][R][R] LS05 | | |
| | | | | | | | pin 7 o-+------+-o 2 |
| 12 o-+--+ | | 3| 4 | | | (Gnd) | GND |
| 17 o-+-----|--|----| >o-------------+--|--|--------------+ | |
| | | | |/ 8 /|9 | | 10 /|11 +----+-o 3 |
| 15 o-+-----+--|--------------o< |------+--|------o< |----+ | SCL |
| | | 1| 2 | | | | |
| 9 o-+--------|----| >o-------------------+--------------+----+-o 4 |
| | | |/ 6 /|5 | | SDA |
| 11 o-+--------+----------------------------------o< |----+ -------
| 10 o-+-+ | 4-pin
| 13 o-+-+--oGND Connector
| 25 o-+-+ ------------------ Part List --------------------------
-------- | 1 - .1 uF capacitor | 6 - 10K 5% resistors |
25-pin male D | 1 - 4-pin connector | 1 - 25-pin male D connector |
connector to PC | 1 - 74LS05 open collector hex inverter |
printer port -------------------------------------------------------
SEE ALSO iicbb(4), iicbus(4), ppbus(4)HISTORY
The lpbb manual page first appeared in FreeBSD 3.0.
AUTHORS
This manual page was written by Nicolas Souchu.
BSD October 25, 1998 BSD