Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: edidataguy
36,365
Posted By edidataguy
sed -e 's/\(<[^<][^<]*>\)//g' file.xml OR ...
sed -e 's/\(<[^<][^<]*>\)//g' file.xml

OR

sed -e 's/\(<[^<][^<]*>\)//g; /^$/d' file.xml
1,211
Posted By edidataguy
There are different ways to achive this. Try...
There are different ways to achive this.
Try this for one:
$ MYBUILDPATH=/randomstuff/myBuildRoot/data_tables
$ echo $MYBUILDPATH | sed 's~data_tables[/]*$~~'

/randomstuff/myBuildRoot/
$...
3,142
Posted By edidataguy
Try this:STR=$(strings MR* | grep MoCoseries) ...
Try this:STR=$(strings MR* | grep MoCoseries)
Beware: you have to code for "What happens if the string is not found"
25,635
Posted By edidataguy
How about this: sed '1,10d' file*
How about this:
sed '1,10d' file*
Showing results 1 to 4 of 4

 

Featured Tech Videos

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