Search Results

Search: Posts Made By: pt14
1,588
Posted By pt14
I missed the shebang. It works now!
I missed the shebang. It works now!
1,588
Posted By pt14
I dont need to make it an environment variable
I dont need to make it an environment variable
1,588
Posted By pt14
Reading a variable in csh
I have a simple script that sets a value and reads the value in csh:

set -x
set a = 10
echo $a

The output of the script does not show the value of a

+ set a = 10
+ echo

any help would...
4,074
Posted By pt14
sed...
sed 's/\(^\<placement\>\)\(.*\)\(\<\/placement\>\)/\2/' filename
12,073
Posted By pt14
typeset -u var # convert to uppercase no matter...
typeset -u var # convert to uppercase no matter what the input is

# checks for all possible input combos
echo $var | sed 's/^YES$/valid/
s/^NO$/valid
s/^Y$/valid
s/$N$/valid'
5,491
Posted By pt14
Does your command really list lastest 2 files? ...
Does your command really list lastest 2 files?

Try the below command and see if the order of listing is based on time.
find /home/shantanu -type f | xargs ls -lt | pg
8,226
Posted By pt14
find /home/sponna/*.txt -prune -size +536c
find /home/sponna/*.txt -prune -size +536c
8,226
Posted By pt14
try using the -prune option
try using the -prune option
1,994
Posted By pt14
Thanks. Works perfectly well for me. Was also...
Thanks. Works perfectly well for me.
Was also trying out csplit.

csplit filename /End/ {2}

But it doesnt include the End pattern itself in the split files.
1,994
Posted By pt14
Multiline read with multicharacter record seperator
I have a file like the below:

Start
<</NumCopies 0001>>
0223 098 et(5926)sh
0223 098 mt(5926)sh
End
Start
<</NumCopies 0001>>
0224 098 et(5926)sh
0224 098...
Forum: AIX 03-05-2008
20,662
Posted By pt14
how to find files older than 2 hours
I need help to find files in a directory that are older than 2 hours.
Any help would be great.
2,319
Posted By pt14
tr "|" "\n" < flatfile
tr "|" "\n" < flatfile
6,246
Posted By pt14
Echo 'Updated:...
Echo 'Updated: IPTel\platform\core\include\RTCPBase.h \main\MWS2051_Sablime_Int\1 \main\MWS2051_Sablime_Int\IPT2_8_SP1_Integration\1' | awk -F" " '{print $2}'
25,950
Posted By pt14
find . -name "*.txt" -exec dirname {} \; | sort...
find . -name "*.txt" -exec dirname {} \; | sort -u
4,652
Posted By pt14
egrep "pattern1|pattern2" filename
egrep "pattern1|pattern2" filename
11,591
Posted By pt14
Consider the script: select i in jan feb mar...
Consider the script:
select i in jan feb mar exit
do
case $i in
jan) echo "Jan";;
feb) echo "feb";;
mar) echo "mar";;
exit) exit;;
*) echo "invalid...
11,591
Posted By pt14
PS3->Prompt string in select loops
PS3->Prompt string in select loops
14,699
Posted By pt14
type crontab -e at the command prompt. vi editor...
type crontab -e at the command prompt. vi editor opens. Make the below enrty in the editor

* * * * * sar > sarlog

save and exit editor
14,699
Posted By pt14
create a cron entry
create a cron entry
127,591
Posted By pt14
ls *|grep -v f1|xargs rm -rf
ls *|grep -v f1|xargs rm -rf
4,450
Posted By pt14
sed -n 's/\(^.\)*,\(.*\)/\1\2"whatever you want...
sed -n 's/\(^.\)*,\(.*\)/\1\2"whatever you want to insert here"\3/p' filename.csv
this will elect the column between 2nd and 3rd.

sed -n 's/\(^.\)*,\(.*\)/\1\2\3"whatever you want to insert...
4,450
Posted By pt14
p -> print
p -> print
4,450
Posted By pt14
() helps you group patterns. \(^.\) is...
() helps you group patterns. \(^.\) is represented by \1. Similarly \(.*\) is represented by \2

You cannot use [] instead of ()
4,450
Posted By pt14
sed -n 's/\(^.\)*,\(.*\)/\1"whatever you want to...
sed -n 's/\(^.\)*,\(.*\)/\1"whatever you want to insert here"\2/p' filename.csv
4,450
Posted By pt14
sed -n 's/\(^.\)*,\(.*\)/\1"whatever you want to...
sed -n 's/\(^.\)*,\(.*\)/\1"whatever you want to insert here"\2/p'
Showing results 1 to 25 of 31

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