Search Results

Search: Posts Made By: divya bandipotu
12,910
Posted By itkamaraj
ls -R
ls -R
12,910
Posted By balajesuri
find ./ -type f
find ./ -type f
161,215
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> [...
10,162
Posted By rangarasan
Word By Word
Hi,

nawk -F' ' '{for(i=1;i<=NF;i++){print $i;system("sleep 1");}}' File_name

Cheers,
Ranga:)
10,162
Posted By radoulov
s='Hi every one. How are you all ....' #...
s='Hi every one. How are you all ....'

# char by char
while [ ${#s} -gt 0 ]; do
printf '%s\n' "${s%${s#?}}"
s=${s#?}
sleep 2
done

s='Hi every one. How are you all ....'

# word...
24,298
Posted By Ygor
Try... command | paste -s -d,
Try... command | paste -s -d,
1,939
Posted By hergp
Try $ echo "2011-01-01 00:00:00" | sed 's/[...
Try

$ echo "2011-01-01 00:00:00" | sed 's/[ :-]//g'
20110101000000
35,190
Posted By itkamaraj
man test DESCRIPTION The test...
man test

DESCRIPTION
The test utility evaluates the condition and indicates the
result of the evaluation by its exit status. An exit status
of zero indicates that the...
35,190
Posted By yazu
Man Page for test (OpenSolaris Section 1) - The...
Man Page for test (OpenSolaris Section 1) - The UNIX and Linux Forums (https://www.unix.com/man-page/OpenSolaris/1/test/)
13,931
Posted By bartus11
To be honest I just started learning sed ;) This...
To be honest I just started learning sed ;) This looks like a nice tutorial for it - Sed - An Introduction and Tutorial (http://www.grymoire.com/Unix/Sed.html)
1,404
Posted By tukuyomi
Try this: grep 'SQL CD' infile | sed -r...
Try this:
grep 'SQL CD' infile | sed -r 's/.*SQL CD : *([0-9]*).*/\1/'
2,779
Posted By verdepollo
sed "s/.*/My ID Number='&';/" infile Edit:...
sed "s/.*/My ID Number='&';/" infile

Edit: If you have a strict need for awk:

awk -v sq="'" '{print "My ID Number="sq$0sq";"}'
3,266
Posted By linuxadmin
oh its too simple.. awk '{print...
oh its too simple..

awk '{print "/usr/people/indiana/"$1}' inputfile >> outputfile
2,500
Posted By itkamaraj
bash-3.00$ !sed sed -n 's/^.*=\(.\)/\1/p' test ...
bash-3.00$ !sed
sed -n 's/^.*=\(.\)/\1/p' test
1
2
3
214
bash-3.00$ cat test
aasaasas=1
bsasasasasa=2
sawqas=3
abc=214



your command gives the correct ouput.


bash-3.00$ sed...
1,222
Posted By ctsgnb
In the pattern area, the backslash is only...
In the pattern area, the backslash is only necessary before the opening bracket, the otherone before the closing bracket is useless (since no opening bracket before, it is taken as litteral) :
$...
1,222
Posted By itkamaraj
bash-3.00$ sed -e 's/\]/&&/g' -e 's/\[/&&/g'...
bash-3.00$ sed -e 's/\]/&&/g' -e 's/\[/&&/g' /tmp/myfile
if [[ a -eq 1 ]]

bash-3.00$ cat /tmp/myfile
if [ a -eq 1 ]
Showing results 1 to 16 of 16

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