First  |  Prev |  Next  |  Last
Pages: 45 46 47 48 49 50 51 52 53 54 55 56 57 58
conditional grep-like command
Is it possible using sed, awk, perl or anything else to search a file for a regex and if that line is followed by another regex then display both lines otherwise display only the first line? For example, suppose I grep a file for "Ultra" but want the following line also output if the following line contains "fixe... 8 Oct 2009 15:43
A couple of sed questions
Given the following sentence: This line has odd spaces in it How can I remove the extra spaces so the sentence reads: This line has odd spaces in it And secondly, how do you delete text BEFORE and AFTER a word? For example, This sentence has some words How would I delete everything befo... 7 Oct 2009 11:53
Fork Concept
Dear Sir, I have a doubt in socket regarding fork concept . The things is that in server side for handling multiple client I am using fork. after forking I am response to client in child process. and then I am waiting for new client connection in parent process. my doubt is how the server differentiate client r... 6 Oct 2009 03:14
AIX iconv question
Hi All I have UTF-8 file with Traditional Chinese, Simplified Chinese, Japanese, Korean charset. Since my database can not support UTF-8 Characters. We need converted to ISO8859-1 character. Then we can import and export those data. This process like Garbage In, Garbage Out How to using iconv force UTF-8 to... 4 Oct 2009 23:17
how to remove non printing characters
Hi, Please tell me how to remove the non printing characters from a test file. I am trying to use te dos2unix utility under solaris but my user has not been given permission of the /tmp directory because of which the utility is not able to create a temporary file. I suspect it requires the access to create a f... 6 Oct 2009 03:14
SED help -
I have a file that has a series of lists (qqq) aaa 111 bbb 222 and I want to make it look like aaa 111 (qqq) bbb 222 (qqq) where some lists have only aaa and some have both or more but all end in a number the list should be considered ended if another (qqq) shows up - = - Vasos Pana... 30 Sep 2009 21:23
can't remove directory
Hello all, simple question: as ROOT how can i remove this directory (command?): w\'berg s?zeel There is a \ backslash and a space in the dir name. ... 4 Oct 2009 13:15
[bash4] unexpected behavior printing the keys of associative arrays
consider this example script ------------------------------------------------------------------------ #!/usr/bin declare -A lista_canali lista_canali=(\ ['Rai Uno']=983 \ ['Rai Due']=984 \ ['Rai Tre']=986 \ ['Rai 4']=75708) select x in "${!lista_canali[@]}" ; do printf "%s, ... 17 Sep 2009 12:26
What is the meaning of /opt?
Hi, I see that some packages are installed in /opt? I am wondering what 'opt' stands for? What packages shall be installed in /opt? Regards, Peng ... 9 Sep 2009 15:23
I need a all possible unique combination of numbers given to a script
Hi, I've a requirement as follows: If I give parameter as 3 to a script, it should give following combination of numbers: 1 2 3 12 13 23 123 If I give parameter as 4 to a script, it should give following combination of numbers: 1 2 3 4 12 13 14 23 24 34 123 124 134 234 1234 -------... 4 Sep 2009 02:11
First  |  Prev |  Next  |  Last
Pages: 45 46 47 48 49 50 51 52 53 54 55 56 57 58