Search Results

Search: Posts Made By: ymc1g11
6,516
Posted By ymc1g11
thanks for being helpful, anyway just found out...
thanks for being helpful, anyway just found out that num=$num should work :D
6,516
Posted By ymc1g11
so is that when i assign a variable (say 'num')...
so is that when i assign a variable (say 'num') some value outside awk, and then assign num to a variable in awk (say 'var' ) in this way:

awk -v 'BEGIN { FS="." } var="$num" { printf "%s %s...
6,516
Posted By ymc1g11
problem with printing out variable in awk
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

couldn't...
1,799
Posted By ymc1g11
the output of a_script looks like the following: ...
the output of a_script looks like the following:



and my $argv[1] is actually an access log file, by using grep and the above line as argument, i want to find out how many times had the file...
1,799
Posted By ymc1g11
Problem with using using quote in awk script
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

i have the...
1,462
Posted By ymc1g11
Hi Corona688, I couldn't do that as im...
Hi Corona688,

I couldn't do that as im actually running the loop inside a csh script. any help?
1,462
Posted By ymc1g11
running script and passing it as wordlist
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

foreach loop...
4,350
Posted By ymc1g11
tried the escape character but still it doesn't...
tried the escape character but still it doesn't work. I have to use csh as its in the spec of my coursework :( any help people???
4,350
Posted By ymc1g11
grep with variable and regular expression
i have a command line like this in csh script

grep -i "$argv[2]$"

which i wanted to select the line ending with string provided as argument but it couldn't interpret the '$' (ending with)..
...
2,709
Posted By ymc1g11
parent and child directory
does anyone know how to check in an 'if' statement if a particular directory is a child directory of a particular directory?

help ~
3,182
Posted By ymc1g11
awk script printing each record twice
i have a find command piped to an awk script, I'm expecting it printing the matching record one time but it's doing it twice:

the following is my code:

find directoryname | awk 'BEGIN { FS="/"...
1,751
Posted By ymc1g11
thank you guys thats very useful :D
thank you guys thats very useful :D
1,751
Posted By ymc1g11
ls help
say if i do: ls parentdir
how should i get the result like
parentdir/subdir1
parentdir/subdir2
parentdir/subdir3
.
.
.help~
173,337
Posted By ymc1g11
xbin, thanks for the help. but when i tried each...
xbin, thanks for the help. but when i tried each of them they only printed out some of the files in the current directory (yet `ls` and * gave different result :( ), it didnt give me the result as i...
173,337
Posted By ymc1g11
foreach loop in csh
Hi everyone I'm new to unix and encountered a small problem i couldnt find out a reason why it doesn't work..please help..

in my csh script when i tried to use the foreach loop like this:
...
Showing results 1 to 15 of 15

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