Search Results

Search: Posts Made By: jtollefson
1,802
Posted By bakunin
Some theory first: UNIX is in some ways...
Some theory first:

UNIX is in some ways similar to z/OS and its predecessors. The system has one or several terminals attached over which users can communicate with the main system. The terminals...
156,153
Posted By complex.invoke
Tetris Game -- The Art Of Shell Programming
GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages (https://github.com/deepgrace/tetris)

Usage: bash Tetris_Game [ <runlevel> [ <previewlevel> [ <speedlevel> [...
7,856
Posted By yazu
See hex number of this char with xxd YOURFILE,...
See hex number of this char with xxd YOURFILE, and use $'...' string literal like this:
if [[ $REQUEST_TYPE = "New Request \xNN Id access" ]]; then
But it's better to learn encoding of your file...
7,856
Posted By Shell_Life
Here is one way of doing it: mCnt=$(echo...
Here is one way of doing it:
mCnt=$(echo ${REQUEST_TYPE} | egrep -c "New Request.*Id access")
if [[ "${mCnt}" = "1" ]]; then
echo "Found"
else
echo "did not find"
fi
2,716
Posted By DGPickett
:g/"cc111111"/s/}/,"dd22222","ee33333"}/ ...
:g/"cc111111"/s/}/,"dd22222","ee33333"}/


Can cc111111 b lines ahead of, } ?sed '
/"cc111111"/{
:loop
s/}/,"dd22222","ee33333"}/
t
N
b loop
}
' file_in...
2,716
Posted By ctsgnb
if you have a line that end like this : ...
if you have a line that end like this :
cc11111"}
and you want to add
,"dd22222","ee33333"
so that your final line looks like
cc11111","dd22222","ee33333"}

When in vi type <ESC> to be...
2,139
Posted By guto
Well, I know that you already have an efficient...
Well, I know that you already have an efficient answer to your problem. just in case you may wanna try something else, I am share this code that I have written, a fruit of some reading...
This...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 08:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy