Search Results

Search: Posts Made By: digitalviking
1,041
Posted By neutronscott
Why so many quotes? What error do you get?...
Why so many quotes? What error do you get? Something about "string" not being a file?


sed -i 's:<string>/Users/testuser/Desktop/test.sh</string>:something:g' log.txt
6,283
Posted By 47shailesh
sed -e 's:www.test.com:www.test1.com:g' -e...
sed -e 's:www.test.com:www.test1.com:g' -e 's:test.com:New website is test1.com:g' infile
13,094
Posted By Lakris
Hi, I know You already have an answer, but the...
Hi, I know You already have an answer, but the following could be an alternative, insert where You have
***Some sort of sort function***
It's using the same idea but with other programs.
while...
13,094
Posted By agama
path=$( find /testdir -maxdepth 1 -mindepth 1...
path=$( find /testdir -maxdepth 1 -mindepth 1 -type d | awk 'BEGIN{ srand( ); } { printf( "%.5f %s\n", rand(), $0); }' | sort -k 1n,1 | sed 's/^[^ ]* //; 1q' )
13,094
Posted By agama
This may not be the most efficient way, but it...
This may not be the most efficient way, but it might work. Assigns a random "key" to each record and then sorts based on the key and strips the key away:


awk 'BEGIN{ srand( ); } { printf( "%.5f...
6,656
Posted By yazu
Try find FOLDER -maxdepth 1 type -d instead...
Try
find FOLDER -maxdepth 1 type -d
instead of
ls -l FOLDER
Showing results 1 to 6 of 6

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