Results 1 to 3 of 3
Hi
I have been using awk for some time now and i am facing an issue...
The below works only on fedora 7 and above but this gives the syntax ...
- 01-12-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 2
query on awk behaviour
Hi
I have been using awk for some time now and i am facing an issue...
The below works only on fedora 7 and above but this gives the syntax error when run centos, RHEL and even on Fedora 6.
ls -l | awk {'print "dir",$1,$2,0,0'}
Can you please help to analyze the behavior and explain why this works on fedora 7 and above and why not on other OS.
Regards
Janardhan B
- 01-12-2010 #2Linux User
- Join Date
- Nov 2009
- Location
- France
- Posts
- 292
Just to clarify things, what do you expect as output ?
On Mandriva 2010.0, the output is as expected :
dir -rwx------ 1 0 0
...
I won't really be able to find out 'why this works on fedora 7 and above and why not on other OS.'
- 01-13-2010 #3Just Joined!
- Join Date
- Jan 2010
- Posts
- 2
Hi
Thanks for your reply...
The output what you got is the expected one.
Please let me know if you get to know the reason.
Regards
Janab


Reply With Quote