Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
unix while loop
Name: gmatsoon Date: June 17, 2008 at 16:07:33 Pacific OS: linux and aix CPU/Ram: 1+Gb
Comment:
I have 3 files in a directory. The files are named as below
MSDOS PCDOS filename.txt
The file filename.txt contains the following 1 line
*****DOS
When I run the following while loop I get the following output
Name: nails Date: June 17, 2008 at 21:42:44 Pacific
Reply:
When the echo command executes, the astric is treated as a meta character. The expansion says to list all files in the current directory that end with DOS.
To prevent the expansion, surround the variable with quotes:
echo "$r"
0
Response Number 2
Name: gmatsoon Date: June 18, 2008 at 09:29:37 Pacific
Reply:
That worked.
Thank you for the answer as well as the explanation.
Summary: To give a short description what i am doing in the script is reading from a regular text file for the directory structure and changing it to another format and creating the structure, but the problem ...
Summary: Hi, I want to get the second field from a file (report.txt)like this: $ cat report.txt SheetName|RecordName|FieldName|TableName|ColumnName|Change Summary||2||No specification received for output file ...
Summary: Hello, here is my issue - I am running a script with a while loop. I have an awk statement within the while loop that uses an incremented variable. the script does not like me to use a variable in t...