Search Results

Search: Posts Made By: alrinno
3,421
Posted By alrinno
Thank you..
I've been able to figure out a solution myself too. thanks for the help..
12,312
Posted By alrinno
thank you soooo much!
thank you soooo much!
12,312
Posted By alrinno
thanks Ikon, but this creates an empty line at...
thanks Ikon, but this creates an empty line at the beginning of the file. how can i achieve the same result withouth the beginning empty line?
12,312
Posted By alrinno
Initializing files to empty in korn shell
hello,

i want to know how to initialize a file to an empty one in korn shell scripting? i'm using a file name and building it during a while loop using >>. The problem occurs when the file is...
3,421
Posted By alrinno
well thanks to all for the help..
well thanks to all for the help..
3,421
Posted By alrinno
well thanks radoulov, but yes, your solution does...
well thanks radoulov, but yes, your solution does depend on the pattern "student" or "class" .. however, the file doesn't have the actual words "student" and "class"!!! it's student names and class...
3,421
Posted By alrinno
I'm sorry for offending anyone! i'm not trying to...
I'm sorry for offending anyone! i'm not trying to get easy help.. i'm really stuck!
3,421
Posted By alrinno
okey dokey.. original file format: :junk1 ...
okey dokey..

original file format:
:junk1
"student1"
:junk2
blah
blah
blah
:junk3
blah
blah
:junk4
"classa"
:junk1
"student2"
"student3"...
3,421
Posted By alrinno
i don't have code that is working... the file...
i don't have code that is working... the file contained much more data than above.. this is how i was able to sort it to extract only the relevant data, and now i need to create a separate record for...
3,421
Posted By alrinno
awk (?) programming
Hello

i need help with following problem:

i need to update a file containing records in following format:

student1
classa
student2
classb
student3
student4
classc

i need to...
3,722
Posted By alrinno
Thanks to everyone who helped! much appreciated..
Thanks to everyone who helped! much appreciated..
3,722
Posted By alrinno
thank you Annihilannic, that worked beautifully...
thank you Annihilannic, that worked beautifully on the command line. Use the same thing inside of a script file?

thank you
3,722
Posted By alrinno
sed and blank lines
hello,

i have tried to remove blank lines from a file using korn shell script file.. it doesn't seem to work!

i tried sed '/^\s*$/d' infile > outfile but that didn't work
i tried sed 's/ ...
18,401
Posted By alrinno
thanks Joeyg... i found that you can also...
thanks Joeyg...

i found that you can also change the delimiter to ( : ) instead of ( / ) on sed, and desired result happens..

sed "s:$oldvar:$newvar:g"
18,401
Posted By alrinno
Sed variable substitution when variable constructed of a directory path
Hello,

i have another sed question.. I'm trying to do variable substition with sed and i'm running into a problem.


my var1 is a string constructed like this:
filename1 filerev1 filepath1...
2,771
Posted By alrinno
thanks vgersh99... i'm still having a...
thanks vgersh99...

i'm still having a problem with the script though. It appears to just copy the contents of file1 (the out-of-date file) unaltered. any suggestions as to why?

file1...
2,771
Posted By alrinno
Thanks, but i can't use nawk for some reason. ...
Thanks, but i can't use nawk for some reason. I"m running hpux 11.11
2,771
Posted By alrinno
Korn shell awk use for updating two files
Hi,


I have two text files containing records in following format:

file1 format is:


name1 age1 nickname1 path1

name2 age2 nickname2 path2


file 1 example is:


abcd 13...
Showing results 1 to 18 of 18

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