Search Results

Search: Posts Made By: pantelis
9,282
Posted By pantelis
that is my whole script. anw i found the problem....
that is my whole script. anw i found the problem. i shouldn't have used the "path" as a name for a variable
9,282
Posted By pantelis
hmmm.... ok... i didn't do anything with the...
hmmm.... ok... i didn't do anything with the $PATH variable... but i used $path...
same thing huh? :(
9,282
Posted By pantelis
mv command not found bug
foreach x ( *.foo)

echo "move file?"
set move=$<
if($move == y) then
echo "enter new pathname:"
set path=$<
mv $x $path/$x
endif
end


...
2,175
Posted By pantelis
going through files in a directory, and it's sub-directories
i have a c-shell script.
and i pass it one or two arguments
the first argument is the directory
the second is the "-r"
now,
if i pass it only one, it searches the files ending in txt in that...
4,525
Posted By pantelis
im trying this in csh but it doesn't seem to...
im trying this in csh but it doesn't seem to work.

btw
im checking the second parameter, like this

if($argv[2] == "-r") then

search in all the sub-folders of that folder

endif
4,525
Posted By pantelis
thx guys! i will try them out! ----------...
thx guys! i will try them out!

---------- Post updated at 05:18 AM ---------- Previous update was at 02:05 AM ----------

#!/bash/csh -f

foreach file ($argv/*)

echo $file |grep -q...
4,525
Posted By pantelis
i need to do something with these text files,...
i need to do something with these text files, that why i need a script
4,525
Posted By pantelis
Checking if the files in a directory have a txt extension
foreach file ($dir1/*)
if ($file ~ *.txt) then
echo "Skipping $file (is a txt file)"
endif
end

that should work right guys? :confused:
1,534
Posted By pantelis
going through files in a directory
hey, guys i just want to know how i can get through a folder and count the number of files that exist in that folder.

it should be something like this
"for file in directory...
do i++"...
4,621
Posted By pantelis
yeah im writing them in notepad. what should i...
yeah im writing them in notepad. what should i use?
and i tried nano ss1.txt
i removed the garbage, saved the file, and now it runs, but
"echo hello" does not execute
4,621
Posted By pantelis
ls -l ss1* -rwx------ 1 adr1g09 ad_csug 46...
ls -l ss1*

-rwx------ 1 adr1g09 ad_csug 46 May 5 18:54 ss1.txt

file ss1*

ss1.txt:

cat ss1*

ÿþ#!/bin/csh
echo hello
4,621
Posted By pantelis
when i run ls -l ss1* i get this: "ss1.txt"...
when i run ls -l ss1*
i get this:
"ss1.txt"
and im on linux.
4,621
Posted By pantelis
it is called ss1 but it is a text file. so i have...
it is called ss1 but it is a text file. so i have to type "ss1.txt " to run it.
but i get that binary error
4,621
Posted By pantelis
ok. the file name is "ss1.txt" so i type ...
ok. the file name is "ss1.txt"
so i type
./ss1.txt

and i get this now.

"./ss1.txt: ./ss1.txt: cannot execute binary file"
4,621
Posted By pantelis
ok! that's what i get. "ss1: Command not...
ok! that's what i get.

"ss1: Command not found."
4,621
Posted By pantelis
well the file's name is "ss1" but it is a txt...
well the file's name is "ss1"
but it is a txt file.
4,621
Posted By pantelis
problem writing a simple c shell script
#!/bin/csh
echo hello world

this is what i got in a text file called ss1.
i type "chmod 755 ss1.txt" to make it executable.
then when i type
ss1
or
ss1.txt
it says
"ss1 command not...
2,228
Posted By pantelis
guys, i have been given this assignment. after i...
guys, i have been given this assignment. after i create the awk script, i have to implement it in a C shell script.



so the c shell script, take one argument, which is the path of the folder,...
2,228
Posted By pantelis
thx, but it seems that i get the first output,...
thx, but it seems that i get the first output, that is the

3r/> <a href="http://www.facebook.com">Facebook. </a>

i can't make the number appear at the end of the line.

like this

<br/>...
2,228
Posted By pantelis
input file: <html> <body> <h1>Welcome...
input file:

<html>
<body>

<h1>Welcome to Page1 Website</h1>
<p1>Hello and welcome to Page1 Website</p1>

<br/> <a href="http://www.youtube.com">Youtube. </a>
<br/> <a...
2,228
Posted By pantelis
output problem
#!/bin/gawk -f
BEGIN{}

{if ($0~/<a/ || $0~/<img/)
link=link+1
}
{if ($0~/<a/ || $0~/<img/)
cnt[$i]++

}
{if ($0~/<a/ && $0~/http/ )
weblink[$i]++
}
{if...
Showing results 1 to 21 of 21

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