Search Results

Search: Posts Made By: Ste_Moore01
6,100
Posted By RudiC
I agree with bipinajith - can't be done in DOS. ...
I agree with bipinajith - can't be done in DOS.
But - you can replace the standard command interpreter (command.com in older versions) by sth. like complus.com (a unix-like cmd interpr. for MS OSes)...
6,100
Posted By Yoda
I don't think that is possible in DOS. You...
I don't think that is possible in DOS.

You can write a Batch File (http://www.computerhope.com/batch.htm) and put a PAUSE command to prompt user to press any key to continue. But there is no way...
6,205
Posted By michaelrozar17
I do get the expected output as mentioned in post...
I do get the expected output as mentioned in post #1 with the same input file pattern. Can you attach the large file that does not work for these solutions..?
$ sed 's/^ *//
> /PRODUCT CODE/{
> :l...
6,205
Posted By michaelrozar17
Try the below as is.. $ uname -rs SunOS 5.10 ...
Try the below as is..
$ uname -rs
SunOS 5.10
$ sed 's/^ *//
> /PRODUCT CODE/{
> :l
> N
> /<.PRODUCT>/{
> s/ *\n *//gp
> d
> }
> bl
> }' inputfile
6,236
Posted By Don Cragun
Actually: touch -r file1 file2... will set...
Actually:
touch -r file1 file2...
will set the access time and the modification time of file2 and any other file operands to match the access time and the modification time of file1. If you just...
6,236
Posted By Peasant
You will use touch option -r (reference file)...
You will use touch option -r (reference file) with will create a file with exact same timestamp as file you referenced to.

Check man touch (https://www.unix.com/man-page/linux/1/touch/)
2,314
Posted By rdrtx1
case "$SEL" in 0) echo zero ...
case "$SEL" in
0)
echo zero
;;
[1-9]*)
echo number
;;
[qQ]|[qQ]uit)
echo quit
;;
*)
echo no choice
;;
esac
6,205
Posted By alister
To edit the file itself (have a backup copy handy...
To edit the file itself (have a backup copy handy just in case):
printf '%s\n' '1,$s/^ *//' '1,$s/ *$//' 'g/^<PRODUCT / .,/^<\/PRODUCT>/j' w | ed -s file

In heredoc format:
ed -s file <<'EOED'...
Showing results 1 to 8 of 8

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