As gus2000 noted, you can do this in some shells. In most systems, expr also has some limited string matching:
Producing:
See man pages for details ... cheers, drl
Hi,
Is there any unix equivalents available for the folllowing windows function ?
FindFirstFile
FindNextFile etc.....
Or do i have to write an equivalent api??
Can anybody help me to do the same??
thanks in advance
Ani (2 Replies)
i was trying to do a simple batch file equivalent in Unix
when i write a single command in a file, give executable permissions and run it (i gave the file name as a command at the prompt), it works fine.
but when i have more than 1 command, say my file has
a.out
ls
ls
a.out
it doesnt... (1 Reply)
Hi all,
I am preparing for a worst case scenario. Say i have a production server A, should A fails ( for whatever reason), i want another server B to take over. How can i move everything from A to B? Assuming i have regular backup of A.
I've searched in the forums, and briefly came across... (4 Replies)
Hi all,
Is there any command in unix equivalent to setlocal in windows.
setlocal command is really useful in restoring local environment variables in windows.
Thanks,
Sonal. (7 Replies)
Hi All,
I am a frequent user of loacate in linux and really impressed with its speed and accuracy.
I would like to know if there is any such equivalent in UNIX. (not the find, which is relatively very slow)
Any locate packages which can be made available in UNIX(HP-UX) for this?
TIA,... (4 Replies)
Hi All,
I am comfortable working in LINUX and need equivalents for HP-UX for below mentioned,
1. We use TAB key to expand/reveal a name in LINUX. Is there any way to make this work for UNIX, where it is double escape.
2. Also can we use make use of left,down,up,right keys instead... (3 Replies)
I have a folder called "log" which has a few sub-folders say "fda" "fd7" "fdd" "fd6 .... "
I wish to fire the below command inside each subfolder starting with the folder with the latest time stamp.
grep "$greptime.*exit" Prod.$(hostname).log | grep $fdrdate_new
If the seach did not yield... (3 Replies)