Search Results

Search: Posts Made By: shri_nath
5,870
Posted By shri_nath
That worked. Thanks. Could we close this...
That worked. Thanks.
Could we close this thread?
-sn
5,870
Posted By shri_nath
reading the whole line from a file into a variable
Hi,
I am doing :

while read line
do
printf "%s\n" ${line}
done <datafile.txt
but I am not getting each single line from the data file assigned to the variable line (but only...
6,163
Posted By shri_nath
Hi radoulov, This is the best answer....
Hi radoulov,



This is the best answer. I had also come to the same pattern, but albeit separately for each of the first seven fields. Your answer is even better. I am going to change it a...
6,163
Posted By shri_nath
I am sorry the line -rwxrwxrwx 1 sn sn 22395...
I am sorry the line

-rwxrwxrwx 1 sn sn 22395 2007-05-11 08:37 This is a file name with eighteen spaces.jar*

in the original had multiple spaces in the name of the file (on the html posting here...
6,163
Posted By shri_nath
(g)awk how to preseve white spaces (FS characters) or read a right subpart of $0?
Hi,
I am using gawk (--posix) for extracting some information from something like the following lines (in a text file):

sms_snath_hp_C/CORE BUILD PREREQUISITE:
total 1556
drwxrwxrwx 2 sn sn ...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 06:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy