Sponsored Content
Full Discussion: sed behavior on hp-ux
Top Forums Shell Programming and Scripting sed behavior on hp-ux Post 302116509 by andy2000 on Friday 4th of May 2007 03:28:51 PM
Old 05-04-2007
Jim,

please try the command to remove a lot of white spaces:

content of file:
<space><space><tab><space><tab><space><tab>hello

Andy
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Telnet behavior

Hi there, I've an stupid question. If I make a telnet to a server from my computer and then execute a command that starts an application (on the server), when I disconnect, the application stops running, which is pretty obvious. Is it possible to add a flag at the end of the command so when I cut... (4 Replies)
Discussion started by: piltrafa
4 Replies

2. Programming

ls behavior

I put this here because it is a 'behavior' type question.. I seem to remember doing ls .* and getting all the .-files, like .profile .login etc. But ls .* doesn't do that, it lsts the contents of every .*-type subdirectory. Is it supposed to? I should think that a -R should be given to... (10 Replies)
Discussion started by: AtleRamsli
10 Replies

3. UNIX for Dummies Questions & Answers

strange sed behavior

I have a file called products.kp which contains, for example, 12345678,1^M 87654321,2^M 13579123,3 when I run the command cat products.kp| sed -f kp.sed where kp.sed contains s,^M,, I get the output 12345678,1 87654321,2 13579123,3 (5 Replies)
Discussion started by: Kevin Pryke
5 Replies

4. Programming

Behavior of pthreads

Hi All, I ve written a small program to get started off with pthreads. I somehow feel the program doesnt meet the purpose. Please find the code and the output below. Please find my question at the bottom. #include <pthread.h> #include <stdio.h> #include <stdlib.h> void *PrintThread1(void... (4 Replies)
Discussion started by: nhrraj
4 Replies

5. HP-UX

ltoa Behavior

I am working with the following code: #include <stdlib.h> #include <string> #include <iostream> using std::cout; using std::endl; using std::flush; int main() { long lng1 = 123; long lng2 = 4567; cout<<ltoa(lng1)<<ltoa(lng2)<<endl<<flush; return 0; } Instead of receiving... (2 Replies)
Discussion started by: charitonca
2 Replies

6. Shell Programming and Scripting

Echo behavior

Echo is removing extra blank spaces. See the command. export INSTALLDIR=”First Second /Two Space” echo $INSTALLDIR out put: First Second /Two Space Here only on blnak space is present while with command Echo “$INSTALLDIR” Out put: ”First Second /Two Space” It's correct output... (2 Replies)
Discussion started by: Saurabh78
2 Replies

7. Shell Programming and Scripting

Help regarding behavior sed regexp query

Hi all, I have one question regarding sed regexp (or any regexp in general), I have some path like this C:/Abc/def/ghi/jkl in a file file1 Now if i use following code cat file1 | sed 's#\(.*\)/.*#\1#' Now it give me following output C:/Abc/def/ghi, which is fine But i just... (2 Replies)
Discussion started by: sarbjit
2 Replies

8. Shell Programming and Scripting

sed strange quotes behavior

Hi gurus input file: 1 2 3 4 desired output 1 2\ 2a 3 4 I tried (6 Replies)
Discussion started by: wakatana
6 Replies

9. Programming

Strange behavior in C++

I have the following program: int main(int argc, char** argv){ unsigned long int mean=0; for(int i=1;i<10;i++){ mean+=poisson(12); cout<<mean<<endl; } cout<<"Sum of poisson: "<< mean; return 0; } when I run it, I get the... (4 Replies)
Discussion started by: santiagorf
4 Replies

10. HP-UX

Unusual Behavior?

Our comp-operator has come across a peculiar ‘feature'. We have this directory where we save all the reports that were generated for a particular department for only one calendar year. Currently there are 45,869 files. When the operator tried to backup that drive it started to print a flie-listing... (3 Replies)
Discussion started by: vslewis
3 Replies
COBFUSC(1)						    BSD General Commands Manual 						COBFUSC(1)

NAME
cobfusc -- make a C source file unreadable but compilable SYNOPSIS
cobfusc [-AabdemntxV] [-c case] [-f suffix] [-g file] [-i idobf] [-o file] [-p prefix] [-r file] [-s seed] [-u file] [-w cols] [-z file] [file ...] DESCRIPTION
This document contains only a brief description of cobfusc. For a more complete documentation, please read the Info file or the Texinfo man- ual. The cobfusc utility converts the input file, written in the C language, into a human unreadable one, but compilable. The main work is con- verting every identifier into a meaningless one, removing any comment and compacting all the white-spaces when they are not required. The options are as follows: -A Enable a heavy obfuscation for the source file. This is equivalent to the -ademt -i numeric options. The digraphize option is not enabled by default since the Amendement 1 (1994) changes to ANSI X3.159-1989 (``ANSI C89'') are supported only by few C compilers. -a Garble every string with octal escapes. -b Enable the digraphize mode. -c no | lower | upper | screw | random Set the identifier case obfuscation mode. -d Compact the macros removing backslashes and white-spaces when they are not required. -e Compact the white-spaces when they are not required. -f suffix Put the output of each processed file in a separate file with suffix appended to file name instead of standard output. This is use- ful when processing a package with a lot of source files. -g file Add first the identifiers contained in file to the obfuscation table. Useful when those identifiers are shared between two or more source files. -i no | numeric | word | random Set the identifier obfuscation mode. -m Strip the comments. -n Garble integers with expressions. -o file Set the output destination to file. -p prefix Specify the prefix to use when generating the identifiers. -r file Tell cobfusc that the identifiers contained in file must not be obfuscated. -s seed Specify the seed for generating the random numbers. -t Enable the trigraphize mode. -u Dump the symbol table to file. -V Print version information on standard output then exit. -w Set the width limit of the output. -x Exclusive mode; obfuscate only the identifiers specified by the -g and -z parameters. -z file Add the identifiers pairs contained in file to the obfuscation table. SEE ALSO
cunloop(1), indent(1) AUTHORS
Sandro Sigala <sandro@sigala.it> BSD
July 1, 2001 BSD
All times are GMT -4. The time now is 02:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy