Sponsored Content
Full Discussion: Those simple one liners
The Lounge What is on Your Mind? Those simple one liners Post 302793493 by Corona688 on Friday 12th of April 2013 12:39:39 PM
Old 04-12-2013
Quote:
Originally Posted by MadeInGermany
Yep, it's already a bad habit to replace an unconditional {print} with 1.
That's an important part of how the language works, though, and used for a lot more than an implied 'print'. It's not a hack, any more than FS is a hack -- neither of them are things which people will understand unless explained.
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

invaluable resource for shell one liners and more

Hi all, This link might help whom is seeking a quick solutions for thier daily shell needs. linkAll commands | commandlinefu.com (1 Reply)
Discussion started by: h@foorsa.biz
1 Replies

2. Shell Programming and Scripting

awk - one liners

Guys, I have a requirement like this. A file has >5K records always. Separated by "|", it has 30 fields for each line. In some lines, I am getting an odd field. say, the 15th field is supposed to be 2 characters but comes in as >2. In this case, for resolving this I need to copy the value of... (6 Replies)
Discussion started by: PikK45
6 Replies

3. Shell Programming and Scripting

awk one liners into a nice script

Hi All, I got some awk one liners, how can i split it all into a nice script? Got these: gzcat capgw0.log-201308161376632741.gz | sed -n '/2013-08-16 05:56:/,/2013-08-16 05:58:/p' > timebased.log awk -F":|," 'FNR==NR && /INFO - AId:/ {a=$0;next} END {for (i in a) print i "|" a}'... (8 Replies)
Discussion started by: batka
8 Replies

4. What is on Your Mind?

One liners, quick rant...

Hi fellas and fella-esses... There are numerous threads on here where people ask for, and often expect, solutions to difficult problems solved using _one_liners_. Why do they insist as such when it is virtually no different in execution time with well thought out indented code? Is it me... (12 Replies)
Discussion started by: wisecracker
12 Replies
nccgen(1)							      nccgen								 nccgen(1)

NAME
nccgen - source code analysis SYNOPSIS
nccgen file.c DESCRIPTION
nccgen is a program that can help you hack/study the source code of C programs. It will report which functions call which other functions, which functions are called by other functions and what global variables and members of structures are used by functions. This is useful if you want to analyse a program and eventually hack it. USAGE
To use nccgen find the Makefile of the program you want to analyse. In the Makefile locate the line which sets the C compiler. That is usually something like CC = gcc and you must change it to CC = nccgen -ncgcc -ncld -ncfabs. Then compile the application. It may be useful to also replace AR = ar with AR = nccar and LD = ld with LD = nccld to link nccout object files. OUTPUT
nccgen will produce a file with nccout extension for every C file analysed. Then you can use the viewer nccnav (with nccnav program.nccout ) to view this data and do your work. If the procedure of make links object files with "ar" or "ld" you should manually link the produced .nccout files. AUTHORS
The homepage of the ncc project is: http://students.ceid.upatras.gr/~sxanth/ncc/ SEE ALSO
The documentation included in the package. Linux 8 Mar 2003 nccgen(1)
All times are GMT -4. The time now is 09:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy