In freebsd-questions Digest, Vol 447, Issue 1, Message: 13
On Sun, 23 Dec 2012 18:48:12 +0100 Dh?nin Jean-Jacques dhe...@gmail.com
2012/12/23 Polytropon free...@edvax.de
#!/bin/sh
cat foo.txt | while read LINE1
do
cat bar.txt | while read LINE2
do
Hi all
Please take a look at the script below wich I've wrote :
1- cat /foo/bar.txt | while read $LINE12- do3- cat /foo/bar/foo/bar.txt |
while read $LINE24- do 5- if [ $LINE1 = $LINE2 ]; then6-
sw=17- echo Current value of sw is : $sw8-
On Sun, 23 Dec 2012 01:05:35 -0800 (PST), Jack Mc Lauren wrote:
Hi all
Please take a look at the script below wich I've wrote :
1- cat /foo/bar.txt | while read $LINE12- do3- cat /foo/bar/foo/bar.txt |
while read $LINE24- do 5- if [ $LINE1 = $LINE2 ]; then6-
On Sun, 23 Dec 2012 10:34:34 +0100, Polytropon wrote:
First, the lines with read have to be:
cat /foo/bar.txt | while read $LINE1
cat /foo/bar/foo/bar.txt | while read $LINE2
Reason: $LINE1 and $LINE2 will be evaluated here, they are empty
string, causing read to throw an error.
On 23/12/2012 09:43, Polytropon wrote:
On Sun, 23 Dec 2012 10:34:34 +0100, Polytropon wrote:
First, the lines with read have to be:
cat /foo/bar.txt | while read $LINE1
cat /foo/bar/foo/bar.txt | while read $LINE2
Reason: $LINE1 and $LINE2 will be evaluated here, they are empty
On Sun, 23 Dec 2012 09:57:02 +
Matthew Seaman matt...@freebsd.org wrote:
Hmmm I'd just like to draw your attention to the comm(1) program,
which lets you find lines common to two files, or only in one or other
of a pair of inputs, very easily. The only slight gotcha is that the
input
2012/12/23 Polytropon free...@edvax.de
On Sun, 23 Dec 2012 10:34:34 +0100, Polytropon wrote:
First, the lines with read have to be:
cat /foo/bar.txt | while read $LINE1
cat /foo/bar/foo/bar.txt | while read $LINE2
Reason: $LINE1 and $LINE2 will be evaluated here, they are
2012/12/23 Polytropon free...@edvax.de
#!/bin/sh
cat foo.txt | while read LINE1
do
cat bar.txt | while read LINE2
do
if [ $LINE1 = $LINE2 ]; then
sw=1
echo Current value of sw is : $sw
At 05:19 AM 8/23/2008, David Banning wrote:
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
then filenames that have a space in them ie: john smith.jpg
are processed by my script as two names, john
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
then filenames that have a space in them ie: john smith.jpg
are processed by my script as two names, john and smith.jpg.
What is the best way to deal
On Sat, 23 Aug 2008 06:19:42 -0400
David Banning [EMAIL PROTECTED] wrote:
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
for x in *
___
RW writes:
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
for x in *
There's the (poorly documented, IMO) IFS (internal field
separator) shell variable. It's a
On Sat, 23 Aug 2008 06:19:42 -0400, David Banning [EMAIL PROTECTED] wrote:
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
then filenames that have a space in them ie: john smith.jpg
are
On Sat, Aug 23, 2008 at 04:09:57PM +0200, Polytropon wrote:
On Sat, 23 Aug 2008 06:19:42 -0400, David Banning [EMAIL PROTECTED] wrote:
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
On Sat, 23 Aug 2008 10:16:36 -0400, Thomas Dickey [EMAIL PROTECTED] wrote:
spaces won't go away, and since they're legal in filenames, one may as
well handle them.
Well, it's completely possible to create a file name like:
This is my *favourite* photo from Cats \ by Bob Jane / my wife ~ 2008
Polytropon wrote:
Well, it's completely possible to create a file name like:
This is my *favourite* photo from Cats \ by Bob Jane / my wife ~ 2008
`musical'.JPG
Um... actually you cannot create that as a filename on UFS. There are
precisely two characters you cannot use in a filename.
On Thu, Feb 20, 2003 at 03:14:22PM -0600, Brian Henning wrote:
i have this script with one input file and i keep getting the error:
/files_???/19980527/???/servermyname # sh doc_id.sh input.txt
/files_???/19980527/???/: No such file or directory
/files_???/19980527/???/
sh
i have this script with one input file and i keep getting the error:
/files_???/19980527/???/servermyname # sh doc_id.sh input.txt
/files_???/19980527/???/: No such file or directory
/files_???/19980527/???/
sh doc_id.sh
-
#! /bin/sh -x
INPUT=$1
for i in `cat $INPUT`;
18 matches
Mail list logo