Search Results

Search: Posts Made By: na5m
48,964
Posted By na5m
Try octal?
sed 's/\o011//g' filename011 (zero one one) is octal for "Horizontal Tab".
Precede the three-digit octal with a lower-case alphabet letter o.
This sed command should delete all instances of the tab...
2,564
Posted By na5m
BASH quoting behavior
The block below isn't a surprise:$ ls
file1 file2 file3
$ x=*
$ echo $x
file1 file2 file3
$ echo '$x'
$x
$ echo "$x"
*
$But I found this block a bit bewildering:$ echo $x'
>'
*

$I'm...
20,509
Posted By na5m
try./calc bill \* gatesand you'll get a ls...
try./calc bill \* gatesand you'll get a ls listing again. Escaping the asterisk only seems to work on numerals. Does anyone know a workaround?
6,286
Posted By na5m
Wow! That worked! What does Ctrl-V mean/do???? ...
Wow! That worked! What does Ctrl-V mean/do????
And thank you, everyone! :b:
6,286
Posted By na5m
The tab key will beep the PC speaker when I try...
The tab key will beep the PC speaker when I try to use it in a command (however, tab completion works, oddly enough). When I'm using ed or vi, the tab key functions as expected (it inserts 0x09). I...
6,286
Posted By na5m
I tried that. However, when I hit the tab key,...
I tried that. However, when I hit the tab key, the PC speaker just beeps and the cursor stays where it was.
6,286
Posted By na5m
sed imbed a tab
I'm using OpenBSD 4.3 & ksh (pdksh) default shell.
I'm trying to use sed to insert a tab into a text file with no luck.
$ sed 's/SusanAppleton/Susan\o011Appleton/' myFile.txt
Susano011Appleton
$...
4,367
Posted By na5m
For what it's worth, here's a partial solution:$...
For what it's worth, here's a partial solution:$ echo file | sort --key=2,2I'll post a full solution, if I can make it that far :o
4,367
Posted By na5m
I want to help you, but I don't quite understand...
I want to help you, but I don't quite understand the question. Can you re-phrase it?
19,023
Posted By na5m
Now that would eat up some serious disk space :D ...
Now that would eat up some serious disk space :D

So there's no tricky way to use touch to create multiple files simultaneously in one brief command?
2,451
Posted By na5m
Here's a crufty way to select a random file in a...
Here's a crufty way to select a random file in a directory:$ ls | sort -R | sed '1!d'I'm using gnu's sort (Ubuntu). Good luck!
19,023
Posted By na5m
simultaneously create three empty files?
I can't get touch to simultaneously create three empty files file1, file2, file3. I tried:$ touch file[1-3]but all I got was one file:$ file[1-3]What did I do wrong?
6,469
Posted By na5m
Thanks for the great explanation, Perderabo. It...
Thanks for the great explanation, Perderabo. It makes sense to me now.

PS- thanks for the quick reply. I just discovered this forum and it rocks!
1,476
Posted By na5m
sed -i 's/$/&,DIS/' file[1-4]
sed -i 's/$/&,DIS/' file[1-4]
6,469
Posted By na5m
Double asterisks
When I go$ echo *I get a directory listing.

When I go$ echo * *I get a directory listing, followed by a second identical directory listing.

When I go$ echo **I only get one directory listing....
Showing results 1 to 15 of 15

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