10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Im repeating same command to get count, filename from 4 different files, writing to one same file.
awk 'END{print NR"|"FILENAME}' file.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}' asdf.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}' lkjh.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}'... (12 Replies)
Discussion started by: JSKOBS
12 Replies
2. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Create a makefile for a set of source files. Several sources files are given but we are not allowed to modify them. The goal is to create a makefile such that if a change is made to any of the source code files, the project can be... (5 Replies)
Discussion started by: pintu1228
5 Replies
3. Shell Programming and Scripting
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
4. Shell Programming and Scripting
I have connected to the source server by ftp command. when I tried to delete the file I am getting the permission error.
delete file1.txt
450 No permission to delete /today1/file1.txt
the files have below permission
150 File status okay; about to open data connection.
drwx------ 0 ... (3 Replies)
Discussion started by: ramkumar15
3 Replies
5. UNIX for Dummies Questions & Answers
- Concatenate files and delete source files. Also have to add a comment.
- I need to concatenate 3 files which have the same characters in the beginning and have to remove those files and add a comment and the end.
Example:
cat REJ_FILE_ABC.txt REJ_FILE_XYZ.txt REJ_FILE_PQR.txt >... (0 Replies)
Discussion started by: eskay
0 Replies
6. Shell Programming and Scripting
Hello,
I have two source files:
sourcefile1.dat:
12345 xxx yyy zzz
23456 qqq ttt rrr
34567 ppp jjj ggg
45678 fff ddd sss
56789 nnn mmm ccc
sourcefile2.dat:
12345.gif
34567.gif
I want to obtain a simple awk one linger to obtain the following:
xxx yyy zzz 12345.gif
qqq ttt rrr... (15 Replies)
Discussion started by: palex
15 Replies
7. Shell Programming and Scripting
Hi,
I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is
# echo $0
-sh
My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies
8. UNIX for Dummies Questions & Answers
I have open suse kernel kernel 3.1.0-1.2-desktop on which I used kernel source 3.1.10-1.2 downloaded from kernel.org and so I guess I am facing issues while loading kernel modules.
I went to site
kernel-source-3.1.0-1.2.1.noarch.rpm openSUSE 12.1 Free Download
where it shows 2 rpm files... (0 Replies)
Discussion started by: rupeshkp728
0 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone,
Is there an efficient way to source all of the files contained in a directory? Theoretically I could create a FOR loop and successively source each file, but I just wanted to check if there was a cleaner method.
Thanks!
Mike (3 Replies)
Discussion started by: msb65
3 Replies
10. Programming
Hi I have a program, say file1.c which included file1.h, the header file which had lots of #define macros and structure definitions used by file1.c
I have decided to split the source code into 3 separate files (for logical reasons)
file1.c
file2.c
file3.c
Each of these have a... (6 Replies)
Discussion started by: the_learner
6 Replies
NANA(1) General Commands Manual NANA(1)
NAME
nana - generates debugger commands from C and C++ source code
SYNOPSIS
nana [cpp-flags] files...
DESCRIPTION
Generates gdb(1) commands from the arguments which implement the assertion and logging operations specified by macros such as DI(3) and
DL(3). The output of nana(1) can then be sourced into gdb(1) to perform these operations.
Note that you must provide any C preprocessor flags you are using to nana since these can change the code that is generated by the com-
piler.
SEE ALSO
nana-clg(1), nana(3), I(3), DI(3), L(3), DL(3), Q(3) and nana.info.
The nana.info file is the primary documentation.
AUTHOR
Phil Maker <pjm@gnu.org>
NANA(1)