Search Results

Search: Posts Made By: karyn1617
1,662
Posted By karyn1617
Help w/ C shell script please
I need a script that reads from a file, in a while loop, gets each line from a file and does something with it...

while (!in.eof())
{

in.getline(string, 256);


}
something like that in C...
10,167
Posted By karyn1617
Perl Reading from File
is there a perl equivalent to sscanf? or something where I get the strings separated by spaces?
16,226
Posted By karyn1617
Perl: getting the path
How do I strip of the path from the complete filename

for example

$file = "/home/docs/hw1.doc";

how do I extract the "/home/docs/" part?
43,372
Posted By karyn1617
Length of a variable
Hi,
I have another question, I am very new to scripting. I am using c shell.
I am trying to get the length of a variable. Right now I am using
set var = 12
echo $#var

but the # operator isn't...
17,009
Posted By karyn1617
Do you know the limit on awks for length of...
Do you know the limit on awks for length of records? I am only interested in the first 80 bytes of the line, does that make a difference? Also, can't I equate a byte = 1 character?
17,009
Posted By karyn1617
I tried the sed command, but it did not output...
I tried the sed command, but it did not output anything???
17,009
Posted By karyn1617
What if I want to go to byte 24 and replace it,...
What if I want to go to byte 24 and replace it, instead of knowing which character?
17,009
Posted By karyn1617
awk: seeking to bytes
can I seek to a particular byte in a file and replace it using awk?
if so, how?
4,453
Posted By karyn1617
Nevermind, I got it
I figured it out, thanks!
4,453
Posted By karyn1617
Environment Variable
First of all I am using C shell.

I have a variable destDirectory that holds a path.

the path includes an environment variable($user)

when I try to execute a command within the script, the...
Showing results 1 to 10 of 10

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