Greetings,In ksh, I want to test if a pattern exists in a file, e.q. inpseudocode:if [[ grep string1 file1 ]]do one thingelsedo something elseHow would I accomplish this? Thanks in advance....
HiWhy trying to print out messages using printf does't produce any outputunder bash/cygwin (it works though under cmd.exe).Printing with "cout << " works anywhere. Is there something I can fixon my PC (WinXP) or it's a known problem?I started to see the problem when my clisp outp...
Hi,I played around with my USB flash storage (PRETEC 256 MB).It was made to boot Win98 Win95 into dos mode successfullyon my (quite modern) notebook (Toshiba Libretto U100)using a combination of a USB floppy drive, boot-floppies,dd(1), format /s, sys, fdisk, io.sys, msdos.sys, command.com, et al...
Hi,I want to make all lines the same length.e.g.abcabcdeababcdefgabcabcabcabcdeababcdefgabcabcI only have a busybox with the following commands:BusyBox v1.01 (2005.11.20-20:04+0000) multi-call binaryUsage: busybox [function] [arguments]or: [function] [arguments]BusyBox is a multi-call binary tha...
Hey folks, Id like to create a linux-based S, but change fewthingsyou guys tell me how possible this is:#1 - I want to get rid of the filesystem heirarchy. Id like to modifyit to use a volume system, similar to Amiga S, or even DS wherevolumes exist as names "A: or SYSTEM: or DRIVE0:"#2 - I want...
Hi! I am new to shell scripting and am trying to take a class in it.I have most of my script written (and it works! Yay!) but I'm havingtrouble dealing with one part of it. The instructor wants "thereshould be no more than 10 arguments in list, you should only print outthe first 8 arguments...
Is there a way to add a file to an existing tarred and zipped archivewithout first extracting it and then tarring and zipping it again?...
Hi everybody,How can i change several files extensions at once ?Thanks in advance...
Hi all,I'm YAnU, Yet Another new User.Recently I went into a short research:1. RH 8.0,2. Mandrakelinux 10.1 community, and3. Xandros 3.0 deluxe, this one's Debian.4. modem ISDN ext on comm 1.1. kppp works nice ('internet network device' too) on RH8, started Mozillamail, for t...
Hi,I am trying to set a variable my_var in tcsh to "[abc]". To check if itis working I'm trying to echo it back, but I can't get it to work:>set my_var = "\[abc\]">echo $my_varecho: No match.>set my_var = \[abc\]>echo $my_varecho: No match.Does anyone know how to do it?Best...
I have a computer where I have a large NTFS partition that I use forstoring video files I occasionally need to manipulate with Win tools. Atthe moment I have this mounted ro in Linux, so exchanging files is a bitinconvenient. I've read that Linux NTFS write support is imperfect, butI was wo...
I have a computer where I have a large NTFS partition that I use forstoring video files I occasionally need to manipulate with Win tools. Atthe moment I have this mounted ro in Linux, so exchanging files is a bitinconvenient. I've read that Linux NTFS write support is imperfect, butI was wo...

