Search Results

Search: Posts Made By: 116@434
1,379
Posted By 116@434
sed -e 's: / :~:' -e 's: *:|:g' -e 's:~: / :'...
sed -e 's: / :~:' -e 's: *:|:g' -e 's:~: / :' filename
Forum: AIX 04-05-2013
3,526
Posted By 116@434
Output is as you expect i.e. 06/25/2010 ...
Output is as you expect i.e. 06/25/2010
working:
months is assigned a string with 3 chars for each month
getting value of month in then pure mathematics (i.e. position of your input month /3...
1,519
Posted By 116@434
for me the following works echo "$name\c" |...
for me the following works

echo "$name\c" | wc -m
1,519
Posted By 116@434
Please check your echo man page, there may be an...
Please check your echo man page, there may be an option to supress printing of new line character
Forum: AIX 04-05-2013
3,526
Posted By 116@434
date=$1 looks like a wrong assignment, change it...
date=$1 looks like a wrong assignment, change it to $2. And you might need to change the print's variables placements.

---------- Post updated at 01:36 AM ---------- Previous update was at 01:34...
1,303
Posted By 116@434
sed -e "s:<?xml version='1.0'...
sed -e "s:<?xml version='1.0' encoding='UTF-8'?>::" -e "s:</*row_set>::g" -e "/^$/d"
2,204
Posted By 116@434
looks like a dot (.) is not valid in the...
looks like a dot (.) is not valid in the identifier name
3,605
Posted By 116@434
echo $line | sed 's/.*TYPE...
echo $line | sed 's/.*TYPE \(="[^"]*"\).*/\1/'
2,166
Posted By 116@434
"cat" must not be letting ksh exit if the file is...
"cat" must not be letting ksh exit if the file is not found. But with the file redirected to a while loop, the shell exits in AIX.

Any ideas if a flag/set option with ksh works on AIX?
2,166
Posted By 116@434
Korn shell behaviour in AIX
Hi,

Consider the code snippet below:


fun()
{
while read x
do
echo $x
done < somefile_that_does_not_exists
}

fun
echo I am here


Korn shell on HPUX prints the message "I am...
2,859
Posted By 116@434
HISTFILE in AIX
Hi All,

Appreciate your quick help, if you have any idea if there is any HISTFILE in AIX (ksh shell).

Thanks in Advance.
7,966
Posted By 116@434
why don't you use regular expressions? Something...
why don't you use regular expressions? Something like
$NF ~ /.*C$/ { print > "splitC.csv" }
928
Posted By 116@434
inside awk script assign $2 with b and not m.
inside awk script assign $2 with b and not m.
1,444
Posted By 116@434
sed -n '/14:30:00/,/15:30:00/p' filename
sed -n '/14:30:00/,/15:30:00/p' filename
2,665
Posted By 116@434
sed -n 's/$var3/$var3 --dry-run/g' did not go...
sed -n 's/$var3/$var3 --dry-run/g' did not go under variable interpolation, is that what you mean by "not executing"?? In that case you'll have to use " instead of ' for your sed script.
4,524
Posted By 116@434
Write following lines in a file say sed.script: ...
Write following lines in a file say sed.script:


s:^:s/\\(:
s:$:=\\)'[^']*'/\\1XXX/g:


Then invoke the following in a shell script:


sed -f sed.script file2 > file3
sed -f file3...
4,524
Posted By 116@434
Try the following shell scrpit sed -e...
Try the following shell scrpit


sed -e "s:^:s/\\(:" -e "s:$:=\\)'[^']*'/\\1XXX/g:" file2 > file3
sed -f file3 file1 > Expected_file
1,622
Posted By 116@434
use return.
use return.
1,124
Posted By 116@434
Try this: echo $eachline | dirname |...
Try this:


echo $eachline | dirname | sed 's:/backup/:/backup_path/:'
12,157
Posted By 116@434
[1] + Stopped (tty input)
[1] + Stopped (tty input)
12,157
Posted By 116@434
it getting stopped tty input message before I try...
it getting stopped tty input message before I try nohup.
12,157
Posted By 116@434
HP-UX OS. korn shell. I tried to push the...
HP-UX OS.
korn shell.
I tried to push the process in background using Ctrl+Z and then bg. then to remove terminal dependency I am doing nohup <pid>. But it says process stopped.

any ideas?
12,157
Posted By 116@434
Move shell script from foreground to background
Hi,

Need an urgent help. I have a program executing in foreground. I need to execute it in background and also to remove terminal dependency.


Thanks In advance.
116@434
13,786
Posted By 116@434
well it's not a exact solution, but this one will...
well it's not a exact solution, but this one will print entries from file based on last time entry in the log. Hope this will work for you:


sed -n "/`cut -c1-16 m|uniq|tail -5|head -1`/,/`cut...
40,876
Posted By 116@434
floor echo 7.2|cut -f1 -d"." ceil echo...
floor
echo 7.2|cut -f1 -d"."
ceil

echo $(( `echo 7.2|cut -f1 -d"."` + 1 ))
Showing results 1 to 25 of 105

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