Search Results

Search: Posts Made By: alamitab
Forum: HP-UX 10-22-2008
16,130
Posted By alamitab
dos2ux <filename>
dos2ux <filename>
7,701
Posted By alamitab
the best ....
the best ....
7,701
Posted By alamitab
#! /usr/bin/ksh egrep -i "string" file_name ...
#! /usr/bin/ksh
egrep -i "string" file_name
if [ $? -eq 0 ]
then
echo "Found"
else
return 2
fi
4,400
Posted By alamitab
Is not the nicer solution, but you can try: ...
Is not the nicer solution, but you can try:

#! /usr/bin/ksh
#set -x
touch file_1
touch file_2
touch large
touch final
if [ -f large ]
then
cat /dev/null > final
fi
if [ -f final ]
then...
3,796
Posted By alamitab
the best....
the best....
3,796
Posted By alamitab
cat file | grep xxx | awk -F"*" '{ print $2...
cat file | grep xxx | awk -F"*" '{ print $2 }'
33,501
Posted By alamitab
cat /dev/null > processLog.txt
cat /dev/null > processLog.txt
3,935
Posted By alamitab
cat file | awk '$4="04" { print $1 $2 $3 $4 }' > ...
cat file | awk '$4="04" { print $1 $2 $3 $4 }' > new_file
78,879
Posted By alamitab
echo ":string\"" | awk -F":" '{print $2}' | awk...
echo ":string\"" | awk -F":" '{print $2}' | awk -F"\"" '{print $1}'
10,923
Posted By alamitab
try tu use "file_name"
try tu use "file_name"
1,598
Posted By alamitab
lp -dprinter_name $(grep "high" file) or ...
lp -dprinter_name $(grep "high" file)

or

grep "high" file > file
lp -dprinter_name file


you can try....
18,394
Posted By alamitab
Sort line by line
#! /usr/bin/ksh
cat /dev/null > final
while read line_file
do
echo $line_file | awk '{for (i=1;i<=NF;i++) print $i}' | sort > file_pre
while read line
do
...
26,725
Posted By alamitab
Sort by month
cat file | awk -F"," '{print $1, $2, $3}' | sort -M -t"-" -k 2
3,234
Posted By alamitab
the best solution
the best solution
3,234
Posted By alamitab
#! /usr/bin/ksh while read line do echo...
#! /usr/bin/ksh
while read line
do
echo $line |awk -F"9477" '{print NF-1}'
done < file
14,518
Posted By alamitab
paste file_update file_to_be_updated | awk ' {...
paste file_update file_to_be_updated | awk ' { print $1" " $3" "$4}' > final
cat final > file_to_be_updated
2,998
Posted By alamitab
diff file1 file2
diff file1 file2
22,454
Posted By alamitab
cat file | cut -d "$" -f1
cat file | cut -d "$" -f1
22,454
Posted By alamitab
cat file | grep proc | awk -F"$" '{ print $1...
cat file | grep proc | awk -F"$" '{ print $1 }'
6,566
Posted By alamitab
the lines with the messages and a particular...
the lines with the messages and a particular timestamp
6,566
Posted By alamitab
cat messages.Each | grep message | grep...
cat messages.Each | grep message | grep "time_stamp" > file_messages

ex: cat messages.Each | grep "message" | grep "00:05"
10,593
Posted By alamitab
echo JAN_BILS_PRINT_01-01-08.txt | cut -b16-23 |...
echo JAN_BILS_PRINT_01-01-08.txt | cut -b16-23 | sed 's/-/\//g'
Forum: Open Source 01-18-2008
335,720
Posted By alamitab
true :) is the king !!!
true :) is the king !!!
Showing results 1 to 23 of 23

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