Search Results

Search: Posts Made By: FUTURE_EINSTEIN
22,954
Posted By FUTURE_EINSTEIN
Thanks :b:
Thanks :b:
22,954
Posted By FUTURE_EINSTEIN
Thanks but if it is not a secret where the...
Thanks but if it is not a secret where the numbers 3, 8, 6, 5, 20 are taken from in
{printf("%-3s%-8s%-6s%-5s%-20s\n","#","name","gend","age","occup")}
22,954
Posted By FUTURE_EINSTEIN
append column and row header to a file in awk script.
Hi! Is there a way to append column and row header to a file in awk script.
For example if I have
Jane F 39 manager
Carlos M 40 system administrator
Sam F 20 programmer

and I...
1,671
Posted By FUTURE_EINSTEIN
Same strings are not equal
Hi there can anyone help me please. I want to make a program to check if the executable file specified by the user exists in the directory.
When I run this program particulary these lines of code...
3,223
Posted By FUTURE_EINSTEIN
Thanks a lot but why in some cases it perfectly...
Thanks a lot but why in some cases it perfectly accepts it with brackets for e.g for
task=(`ls`)

---------- Post updated at 12:05 PM ---------- Previous update was at 12:01 PM ----------

...
3,223
Posted By FUTURE_EINSTEIN
LOL I would like to but it is a task to write it...
LOL I would like to but it is a task to write it in C shell
3,223
Posted By FUTURE_EINSTEIN
why my code does not work?
Hi there
can anyone help me why my code is saying Badly placed ()'s.
#!/bin/csh
if ($#argv != 1) then
echo "One file is required"
exit 1
else
set lines=(`grep '404' $1 | cut -d" " -f5`)...
1,774
Posted By FUTURE_EINSTEIN
Thanks a lot!! So is there a way to assing output...
Thanks a lot!! So is there a way to assing output of the command to a variable in gawk ???
1,774
Posted By FUTURE_EINSTEIN
Can anyone help me to spot my mistake?
Hi there can anyone help me to spot my mistake and please explain why it appears
My code :
#!/usr/bin/gawk -f
BEGIN { bytes =0}
{ temp=$(grep "datafeed\.php" | cut -d" " -f8)
bytes += temp}
END...
1,173
Posted By FUTURE_EINSTEIN
Thanks a lot!!! ;)
Thanks a lot!!! ;)
1,173
Posted By FUTURE_EINSTEIN
why output consists of 3 values
Hi there if I have a file called an411
which contains the folowing information
152.78.74.111 [13/Feb/2011:06:52:00 +0000] "GET /datafeed.php HTTP/1.1" 200 2826
152.78.74.211 [13/Feb/2011:06:53:00...
1,527
Posted By FUTURE_EINSTEIN
Thanks a lot !!! :rolleyes:
Thanks a lot !!! :rolleyes:
1,527
Posted By FUTURE_EINSTEIN
is there a way to assing variable a value that is output of a program in awk script?
Hi there is there a way to assing variable a value that is output of a program in awk script. For e.g., I did
temp=(`grep "[datafeed.php]" $5 | cut -f8 -d' '`)
but it does not work.
Any...
9,881
Posted By FUTURE_EINSTEIN
Thanks a lot!:b: ---------- Post updated at...
Thanks a lot!:b:

---------- Post updated at 09:52 AM ---------- Previous update was at 09:51 AM ----------


Thanks a lot!!! :)
9,881
Posted By FUTURE_EINSTEIN
Thanks for answering but sorry I did not get is...
Thanks for answering but sorry I did not get is it possible or not I wanted to identify it by position
9,881
Posted By FUTURE_EINSTEIN
How to get value from set of values in csh
Hello.
In csh if I declared a variable to be a set of arguments can I retrieve a particular element from that set.
My code
set files=(`ls`)

and I want to get only one file from $files. How...
3,676
Posted By FUTURE_EINSTEIN
Thanks a lot!!! ;)
Thanks a lot!!! ;)
3,676
Posted By FUTURE_EINSTEIN
grep command does not work
Hello.
I have a question as to why my grep command does not seem to be working.
grep -c '^[K]?*' ~
grep -c '^[K].*' ~
I wanted to count the number of files starting with the letter K and have...
1,197
Posted By FUTURE_EINSTEIN
Thanks a lot this works!!!! :D
Thanks a lot this works!!!! :D
1,197
Posted By FUTURE_EINSTEIN
set varibale to be output of a command
Hi there! :)
How to set varibale to be output of a command in csh.
I was using set i="date+'%y%m%d'" but the output is date+'%y%m%d' and without quites and with a single quote the output is the...
2,381
Posted By FUTURE_EINSTEIN
It is not a script it is just a pipe -bash-3.2$...
It is not a script it is just a pipe -bash-3.2$ ls /tmp/?[0-9]* | sort -r
ls: /tmp/?[0-9]*: No such file or directory



Thanks again!
I get your point so is there a way to say for example I...
2,381
Posted By FUTURE_EINSTEIN
Sorry I don't know why bur it does not working ...
Sorry I don't know why bur it does not working
ls: /tmp/?[0-9]*: No such file or directory:wall:

---------- Post updated at 01:19 PM ---------- Previous update was at 01:14 PM ----------

...
2,381
Posted By FUTURE_EINSTEIN
Output all files fitting the pattern
Hi there I need to create 1 line pipe that outputs list of files whose second character is digit in reverse order (file is a directory and called /tmp)the way I did
ls /tmp | grep '^.[[:digit:]]*'...
1,341
Posted By FUTURE_EINSTEIN
:b: oh, get my mistake
:b:
oh, get my mistake
1,341
Posted By FUTURE_EINSTEIN
Thanks for answering I tried to remove all the...
Thanks for answering I tried to remove all the spaces in arithmetic expressions but still it generates wrong answer
Showing results 1 to 25 of 33

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